I changed some names of namespaces, assemblies in one of existing project (C# and ASP.NET). But when I try to debug it; I get this error.
Could not load file or assembly 'HR' or one of its dependencie开发者_如何转开发s. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).
I have replaced DFI with HR in the code.
Sometime I have got such error and began to research how to resolve it. After all I just have added such attribute to web.config compilation node:
<compilation debug="true" tempDirectory="c:\temp" >
I hope that this can help and other people.
I also got this terrible error and found a solution for this...
- Right Click on the Solution name
- Click Clean Solution
- Restart
- Goto project Properties >> Build
- Change Configuration to Release
- Start Debugging (F5)
1) , 2)
4) , 5)
Hope this will help you also.
If your project compiles, you may be referencing the assembly in a config file. I would check anywhere that you may be using late binding to reference a type. Also check your @Page directives as you may have an assembly qualified type reference that is referring to the old HR assembly.
精彩评论