[Mono-dev] NotSupportedException

marek safar marek.safar at seznam.cz
Mon Jan 1 05:15:45 EST 2007


Hello tim,

Try to compile your sources with the warning level 3 and not 4 that
should fix your issue.

Regards,
Marek

> 
> I am trying to get a project to build and I keep turning up with:
> 
> Unhandled Exception: System.NotSupportedException: The invoked member is not
> sup
> ported in a dynamic module.
>   at System.Reflection.Emit.TypeBuilder.check_created () [0x00000]
>   at System.Reflection.Emit.TypeBuilder.GetConstructorImpl (BindingFlags
> binding
> Attr, System.Reflection.Binder binder, CallingConventions callConvention,
> System
> .Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00000]
>   at System.Type.GetConstructor (BindingFlags bindingAttr,
> System.Reflection.Bin
> der binder, CallingConventions callConvention, System.Type[] types,
> System.Refle
> ction.ParameterModifier[] modifiers) [0x00000]
>   at System.Activator.CreateInstance (System.Type type, Boolean nonPublic)
> [0x00
> 000]
>   at System.Activator.CreateInstance (System.Type type) [0x00000]
>   at Mono.CSharp.TypeContainer.VerifyMembers () [0x00000]
>   at Mono.CSharp.ClassOrStruct.VerifyMembers () [0x00000]
>   at Mono.CSharp.RootContext.EmitCode () [0x00000]
>   at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x00000]
>   at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]
> 
> I can't figure out what the offending code is or how to fix it. Does anyone
> have a clue? I have the latest version of Mono (and even tried today's
> MonoCharge). I would GREATLY appreciate some help. I've looked at the
> System.Reflection.Emit.TypeBuilder.check_created() source, but that doesn't
> help me a whole lot. Next step is to try and build in some logging into Mono
> to figure out what is going on.
> 
> 
> Thanks,
> 
> 
> tim
> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/NotSupportedException-tf2902903.html#a8110578
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 
> 
> 



More information about the Mono-devel-list mailing list