Описание тега badimageformatexception
BadImageFormatException is thrown when the file format of a dynamic link library (.dll file) or an executable (.exe file) does not conform to the format that is expected by the common language runtime. In particular, the exception is thrown under the following conditions:
An earlier version of a.NET Framework utility, such as ILDasm.exe or installutil.exe, is used with an assembly that was developed with a later version of the.NET Framework.
An attempt is made to load an unmanaged dynamic link library or executable (such as a Windows system DLL) as if it were a.NET Framework assembly.
A DLL or executable is loaded as a 64-bit assembly, but it contains 32-bit features or resources. For example, it relies on COM interop or calls methods in a 32-bit dynamic link library.
Components have been created using different versions of the.NET Framework.