ASP服务器错误“无法加载文件或程序集”,但大会肯定是存在的。加载、错误、存在、大会

由网友(丶天亮时说晚安゛)分享简介:我目前收到以下错误。在一个locahost网站。 I am currently getting the following error. On a locahost website. Could not load file or assembly 'MySql.Data, Version=6.5.4.0, Cult...

我目前收到以下错误。在一个locahost网站。

I am currently getting the following error. On a locahost website.

Could not load file or assembly 'MySql.Data, Version=6.5.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

虽然,参考肯定是存在的,在引用文件夹和DLL绝对是我的本地机器在它指向的地方。我也曾尝试删除并重新添加引用。

Though, the reference is definitely there in the references folder and that dll is definitely on my local machine in the place it is pointing to. I have also tried deleting and re-adding the reference.

有谁知道什么会导致这个错误?

Does anyone know what would cause this error?

还有什么是大会的清单定义?

Also what is the assemblys manifest definition?

在此先感谢您的帮助,我非常AP preciate它。

Thanks in advance for the help, I very much appreciate it.

推荐答案

在Visual Studio中选择在Solution Explorer中引用然后在属性确保特定版本属性设置为

in visual studio select the reference in the solution explorer then in the properties make sure the Specific Version property is set to false.

如果您对本参考中的的web.config ,编辑文件和删除的版本信息的入口。

If you have an entry for this reference in the web.config, edit the file and remove the version information.

如果您关闭Visual Studio并用文本编辑器打开该项目文件,确保在项目文件中的程序集的版本没有列出,但只有名称和类型,所以才删除以下内容:

if you close visual studio and open the project file with a text editor, make sure in the project file the version of the assembly is not listed but only the name and type, so just remove the following:

, Version=6.5.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'

那么就应该使用类和方法可在这两个工作,不管你使用的是6.5.5或6.5.4,只要code。

then it should work no matter if you are using the 6.5.5 or 6.5.4, as long as the code is using classes and methods available in both.

阅读全文

相关推荐

最新文章