0

I have a WebApplication project in ASP.Net and one Entity project (Built to DLL).

If i build DLL in Debug mode then my WebApp load assembly successfully. But when I build DLL in release mode, my WebApp could not load assembly.

Error:

Could not load file or assembly 'MyLibs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.

DavidG
  • 113,891
  • 12
  • 217
  • 223
TonyBui
  • 306
  • 3
  • 10

1 Answers1

0

Check your Configuration manager if the Platform is correct. Compare them with the Debug configuration. Also check if the Build checkbox is checked.

Jeroen van Langen
  • 21,446
  • 3
  • 42
  • 57