简体   繁体   English

错误<add assembly=“System.Data.SqlClient, Version=10.50.1600, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”/>

[英]Error with <add assembly=“System.Data.SqlClient, Version=10.50.1600, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”/>

Why do I get this error? 为什么我会收到此错误? How I can fix it? 我该怎么办呢? I'm connecting from Web.config in an application that I started to do but I finish school issues because it is a team effort. 我正在从我开始做的应用程序中连接Web.config但我完成了学校问题,因为这是团队的努力。 The teacher has told me I should put that online so that my connection is well made ​​but not if publicToken or something else this evil at the time of writing the line is enclosed in asterisks. 老师告诉我,我应该把它放在网上,以便我的连接得很好,但是如果publicToken或其他在编写这一行时这个邪恶的内容用星号括起来的话。 I need to indicate that I am writing wrong Please will thank you. 我需要表明我写错了请谢谢。

Server Error in '/' Application. '/'应用程序中的服务器错误。

Configuration Error Description: Error during processing of a configuration file required to service this request. 配置错误说明:处理为此请求提供服务所需的配置文件时出错。 Check the specific error details below and modify your configuration file accordingly. 检查下面的特定错误详细信息并相应地修改配置文件。 Parser Error Message: Could not load file or assembly 'System.Data.SqlClient, Version = 10.50.1600, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a'or one of its dependencies. 分析器错误消息:无法加载文件或程序集'System.Data.SqlClient,Version = 10.50.1600,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a'或其依赖项之一。 The system can not find the file specified. 该系统找不到指定的文件。 Source Error: 来源错误:

Line 51:   <add assembly="System.Data.Services, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
Line 52:   <add assembly="System.Data.Services.Client, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
Line 53:   **<add assembly="System.Data.SqlClient, Version=10.50.1600, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>**

In .NET there is no such assembly as System.Data.SqlClient, Version=10.50.1600, ... . 在.NET中,没有像System.Data.SqlClient, Version=10.50.1600, ...这样的程序集。 SqlClient is the part of standart .NET Framework distribution. SqlClient是标准.NET Framework发行版的一部分。

For example, System.Data.SqlClient.SqlConnection : 例如, System.Data.SqlClient.SqlConnection

Namespace:  System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

Well, you can browse the GAC ( Global Assembly Cache ) for meet the assembly data. 那么,您可以浏览GAC( 全局程序集缓存 )以满足程序集数据。 Use the following command from de command prompt : 从de命令提示符处使用以下命令:

gacutil -l

This list the content of the GAC with the information that you need. 这会列出GAC的内容以及您需要的信息。

Have you checked to make sure that the dll indicated is being deployed and that the version number matches the version you specify above? 您是否已检查以确保正在部署指示的DLL并且版本号与您在上面指定的版本匹配? The error is pretty clear. 错误很清楚。 The system can't find the assembly that the code refers to on this line. 系统找不到代码在此行上引用的程序集。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure应用服务 - 无法加载文件或程序集&#39;System.Net.Http,Version = 4.2.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a&#39; - Azure app service - Could not load file or assembly 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 无法加载文件或程序集&#39;System.Net.Http,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a&#39; - Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 无法加载文件或程序集&#39;System.Threading.Tasks,Version = 1.5.11.0,Culture = neutral,PublicKeyToken = b03f5f7f11d50a3a&#39; - Could not load file or assembly 'System.Threading.Tasks, Version=1.5.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' 无法在ABCPdf.net中获取错误:无法加载“ ABCpdf,版本= 10.1.2.5,文化=中性,PublicKeyToken = a7a0b3f5184f2169” - Getting error in ABCPdf.net: 'ABCpdf, Version=10.1.2.5, Culture=neutral, PublicKeyToken=a7a0b3f5184f2169' could not be loaded 无法加载文件或程序集&#39;Oracle.DataAccess,Version = 2.112.2.0,Culture = neutral,PublicKeyToken = 89b483f429c47342&#39;或其依赖项之一 - Could not load file or assembly 'Oracle.DataAccess, Version=2.112.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342' or one of its dependencies 无法加载文件或程序集&#39;Microsoft.Web.Iis.Rewrite.Providers,Version = 7.1.761.0,Culture = neutral,PublicKeyToken = 0545b0627da60a5f&#39; - Could not load file or assembly 'Microsoft.Web.Iis.Rewrite.Providers, Version=7.1.761.0, Culture=neutral, PublicKeyToken=0545b0627da60a5f' 无法加载文件或程序集'Oracle.DataAccessVersion = 9.2.0.700,Culture = neutral,PublicKeyToken = 89b483f429c47342' - Could not load file or assembly 'Oracle.DataAccessVersion=9.2.0.700, Culture=neutral, PublicKeyToken=89b483f429c47342' 出现错误“添加程序集=” Oracle.DataAccess,版本= someversion,文化=中性,PublicKeyToken =一些数字“ /” - Getting error “add assembly=”Oracle.DataAccess,Version=someversion, Culture=neutral, PublicKeyToken=somenumbers“/” 无法加载文件或程序集“log4net,版本=1.2.10.0,文化=中性,PublicKeyToken=1b44e1d426115821” - Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' 应该引用模块&#39;System.Data.Linq&#39;Version = 4.0.0.0,Culture = neutral,Publickeytoken = b77a5c561934e089&#39; - Module 'System.Data.Linq' Version=4.0.0.0, Culture=neutral, Publickeytoken=b77a5c561934e089' should be referenced
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM