Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

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

System.Object
   System.Exception
      System.SystemException
         System.InvalidProgramException

[Visual Basic]
<Serializable>
NotInheritable Public Class InvalidProgramException
   Inherits SystemException
[C#]
[Serializable]
public sealed class InvalidProgramException : SystemException
[C++]
[Serializable]
public __gc __sealed class InvalidProgramException : public
   SystemException
[JScript]
public
   Serializable
class InvalidProgramException 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.

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.

Requirements

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, .NET Compact Framework

Assembly: Mscorlib (in Mscorlib.dll)

See Also

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.