[Mono-list] TypeInitializationException in ComponentModel

Robert Jordan robertj at gmx.net
Sun Oct 21 17:18:12 EDT 2007


Andrus wrote:
> Code below causes  TypeInitializationException in 1.2.5
> 
> In .net 2 it works OK.
> 
> How to fix ?

Well, the stacktrace[1] is actually containing the magic words

	"System.NotImplementedException"

Support for TypeDescriptionProviders is not implemented at all in Mono.

Robert

[1]
System.TypeInitializationException: An exception was thrown by the type 
initializer for Bag ---> System.TypeInitializationException: An 
exception was thrown by the type initializer for BagDescriptionProvider 
---> System.NotImplementedException: The requested feature is not 
implemented.
   at System.ComponentModel.TypeDescriptor.GetProvider (System.Type 
type) [0x00000]
   at BagDescriptionProvider..cctor () [0x00000] --- End of inner 
exception stack trace ---

   at <0x00000> <unknown method>
   at Bag..cctor () [0x00000] --- End of inner exception stack trace ---

   at <0x00000> <unknown method>
   at EntityBase`1[Customer]..ctor () [0x00000]
   at Customer..ctor () [0x00000]
   at Program.Main () [0x00000]



More information about the Mono-list mailing list