[Mono-list] "The invoked member is not supported in a dynamic module."

Chris Seaton chris at chrisseaton.com
Sun May 13 13:10:35 EDT 2007


Hi,

I have a C# assembly that dynamically defines new classes. From my C#  
code I'm trying to create an instance of a dynamically defined class  
by calling the constructor it fails with

The invoked member is not supported in a dynamic module.

It works fine if I call the constructor of a statically defined  
class. What is wrong? What is the restriction that is causing the  
exception?

It may be unrelated, the C# code that calls the constructor is in a  
call stack that includes invocations of dynamic methods that are  
defined in the same dynamic module as my dynamic classes.

Thanks

Chris Seaton


More information about the Mono-list mailing list