This exception indicates that the .NET execution engine found some invalid code or metadata in a program. This can be caused by a compiler bug that generates malformed MSIL (Microsoft Intermediate Language) instructions. public sealed class InvalidProgramException : SystemException { // Public Constructors public InvalidProgramException ( ); public InvalidProgramException (string message ); public InvalidProgramException (string message , Exception inner ); } HierarchyObject Exception(System.Runtime.Serialization.ISerializable) SystemException InvalidProgramException |