An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

19 במרץ 2007

The informative error message: An unhandled exception of type 'System.BadImageFormatException' occurred in .dll Additional information: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) The detailed inner exception: The code that caused the compiler to produce bad IL code:     public class ActiveRecordForApp<T> : ActiveRecordBase<T>     where T : class     {     } Here's the Fix:     public class ActiveRecordForApp<T> : ActiveRecordBase<T>     where T : class     {     } Yes, it's 100% true. If you put a generic constraint "T:...
4 תגובות