Click here to Skip to main content
15,884,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am currently building a ASP.NET 4 application.

I have a DLL called CommupointServiceLibrary. Each time that I try to run the web application I get the following error message.

Could not load file or assembly 'CommupointServicesLibrary, Version=4.0.0.0, Culture=neutral, PublicKeyToken=e3a9262f077d766f' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).

The dll is .NET 3.5

What I am doing wrong?
Posted

1 solution

The server uses .Net version 4 and thus tries to load dlls built for .Net 4.
In Windows applications, you'd add to app.config in the <configuration></configuration> section:
XML
<startup useLegacyV2RuntimeActivationPolicy="true">
</startup>

There should be something similar for web applications.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900