BadImageFormatException Class
Collapse the table of content
Expand the table of content

BadImageFormatException Class

The exception that is thrown when the file image of a DLL or an executable program is invalid.

For a list of all members of this type, see BadImageFormatException Members.


[Visual Basic]
Public Class BadImageFormatException
   Inherits SystemException
public class BadImageFormatException : SystemException
public __gc class BadImageFormatException : public SystemException
class BadImageFormatException extends SystemException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


This exception is thrown when the file image of an executable program is invalid. For example, this exception is thrown when unmanaged code is passed to Load for loading.

BadImageFormatException uses the HRESULT COR_E_BADIMAGEFORMAT, which has the value 0x8007000B.

For a list of initial property values for an instance of BadImageFormatException, see the BadImageFormatException constructors.


Namespace: System

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

BadImageFormatException Members | System Namespace | Exception | Handling and Throwing Exceptions

© 2015 Microsoft