System.InvalidProgramException Class

The exception that is thrown when a program contains invalid Microsoft intermediate language (MSIL) or metadata. Generally this indicates a bug in the compiler that generated the program.

See Also: InvalidProgramException Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public sealed class InvalidProgramException : SystemException

Remarks

InvalidProgramException uses the HRESULT COR_E_INVALIDPROGRAM, which has the value 0x8013153A.

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

For more information about InvalidProgramException, see article Q312544, "What to Do If You Receive an InvalidProgramException Error Message," in the Microsoft Knowledge Base at http://support.microsoft.com.

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0