2016-07-07 65 views
0

我在ASP.Net和一个实体项目(Built to DLL)中有一个WebApplication项目。C#无法从发布DLL加载文件或程序集

如果我在调试模式下构建DLL,那么我的WebApp加载程序集成功。但是,当我在发布模式下构建DLL时,我的WebApp无法加载程序集。

错误:

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.

回答

0

检查如果Platform是正确的。将它们与Debug配置进行比较。同时检查Build复选框是否被选中。

相关问题