The located assembly's manifest definition does not match the assembly reference

前端 未结 30 2067
北恋
北恋 2020-11-22 01:41

I am trying to run some unit tests in a C# Windows Forms application (Visual Studio 2005), and I get the following error:

System.IO.FileLoadException: Co

30条回答
  •  一生所求
    2020-11-22 02:12

    I got the same error... In my case it got resolved as follows:

    • At first when the application was installed then the people here had used Microsoft Enterprise Library 4.1 in the application.
    • In previous week my machine was formatted & after that today when I built that application then it gave me an error that Enterprise Library assembly is missing.
    • Then I installed Microsoft Enterprise Library 5.0 which I got on Google as first search entry.
    • Then when I built the application then it gave me the above error i.e. The located assembly's manifest definition does not match the assembly reference.
    • After much of a search work & analysis, I found that application was referring 4.1.0.0 & the DLL in the bin folder was of the version 5.0.0.0
    • What i did was then I installed the Microsoft Enterprise Library 4.1.
    • Removed the previous reference(5.0) & added the 4.0 reference.
    • Built the application & voila...it worked.

提交回复
热议问题