FileLoadException error  
Author Message
Amaeze





PostPosted: Common Language Runtime, FileLoadException error Top

FileLoadException: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

We are randomly getting the above exception thrown in our processes while they are running. This started after we migrated our application to the 2.0 framework. The error goes away if the process (dllhost.exe or w3wp.exe).

Somewhat related, fuslogvw doesn't work unless I specify a custom directory for the log locations. It doesn't log anything for COM+ applications also.

Any thoughts



.NET Development34  
 
 
Lucian Bargaoanu





PostPosted: Common Language Runtime, FileLoadException error Top

You should make fuslogvw work and find out which assembly is involved. If you cannot, you can try hooking into AppDomain.AssemblyResolve event to log the error.
 
 
Amaeze





PostPosted: Common Language Runtime, FileLoadException error Top

How do I make fuslogvw work Even when I have a custom directory it doesn't log anything for dllhost.

The more interesting issue is that the application works when restarted, note that I'm not doing anything difference.