找不到System.IO.FileLoadException/定位的程序集的清单定义不匹配 [英] Not Find System.IO.FileLoadException/located assembly's manifest defination not match

查看:93
本文介绍了找不到System.IO.FileLoadException/定位的程序集的清单定义不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从我的特定位置在.net框架中创建一个dll文件.
我位于上面创建dll文件以利用另一个.net框架项目的Windows microsoft.net系统文件夹(``C:\ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727'')中.每当我运行项目时,
错误消息显示为msg(Project.exe中发生了An unhandled exception of type ''System.IO.FileLoadException''.附加信息:

I create a dll file in .net framework from my specific location.
I located to windows microsoft.net system folder(''C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727'') of above creating dll file for utilization of another .net framework project. Whenever i run the project,
a error msg shown(''An unhandled exception of type ''System.IO.FileLoadException'' occurred in Project.exe. Additional information:

Could not load file or assembly ''dll_Name, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'' or one of its dependencies. The located assembly''s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'')<br />


我将如何解决上述问题提供有关此问题的任何适当说明??

请帮助我....


How will i solve the above problem & supply to any proper instruction of this problem???

Please help me....

推荐答案

将您在此项目中设置的引用删除到该.DLL,然后重新添加引用.

如果要继续对.DLL项目进行更改,则必须不断删除并阅读此项目中的引用.要解决此问题,请将您的.DLL项目添加到该项目所在的解决方案中,并添加PROJECT引用而不是对生成的.DLL的引用.
Remove the reference you set in this project to that .DLL and re-add the reference.

If you''re going to continue to make changes to the .DLL project, you''ll have to constantly remove and readd the reference in this project. To get around this problem, add your .DLL project to the solution this project is in and add a PROJECT reference instead of a reference to the resulting .DLL.


这篇关于找不到System.IO.FileLoadException/定位的程序集的清单定义不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆