I encountered a problem Series --- An unhandled exception of type 'System.BadImageFormatException' occurred in UnKnown Module.

Performance issues :

Today, the company took down the development of new code branches, and then recompile, no problem, but when in debug mode in vs run, reported the following error

analysis:

According to the above message dialog box, "System.BadImageFormatException" abnormal image format is wrong, the next check MSDN, reported this exception because the program target platform or inconsistent reference system platform dll file inconsistencies caused additional information see the tips are "CSPluginBase" this is a problem with the modules. Well, to understand the problem and know the problem module, find the corresponding project, view the project properties set as follows:

The project is X64 (do not know who changed submitted), but our entire solutions are Win32, it will change the target platform X86, compilation, run the program, it.

Summary: When there are multiple solutions to engineering modules, unified platform must pay attention to or compatible.

 

Guess you like

Origin www.cnblogs.com/yilang/p/11009471.html