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

前端 未结 30 2070
北恋
北恋 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 01:53

    In my case, this error occurred while running an ASP.NET application. The solution was to:

    1. Delete the obj and bin folders in the project folder

    Clean didn't work, rebuild didn't work, all references were fine, but it wasn't writing one of the libraries. After deleting those directories, everything worked perfectly.

提交回复
热议问题