日期:2014-05-17  浏览次数:20485 次

一个奇怪的黄页错误,谢谢
有两个工程,一个是组建,另一个是asp.net,并且引用第一个Dll
当我,把第二个web工程的编译改到framework4.0的时候,就出错了
Could not load file or assembly 'myComponent.core' or one of its dependencies. An attempt was made to load a program with an incorrect format. 

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.BadImageFormatException: Could not load file or assembly 'myComponent.core' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Assembly Load Trace: The following information can be helpful to determine why the assembly 'myComponent.core' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

 


------解决方案--------------------
myComponent.core 无法正确加载
------解决方案--------------------
'myComponent.core 也改为.NET4试试