[Mono-devel-list] Error with Reflection.Emit : External Module Files Not Supported

John Bailo jabailo at earthlink.net
Sat Jan 1 21:20:18 EST 2005


I am playing with this sample code, illustrating Reflection.Emit ( I've 
already used it successfully in Windows ).

http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=238

I can compile the code that creates the emitted assembly in mono/linux, but 
when I go to run it, it reports:

jbailo at linux:~/MonoDevelopProjects/QuoteOfTheDay/DynAsmSample/bin/Debug> ./qot.exe 
QuoteOfTheDay.dll
Uncaught exception: System.NotSupportedException: External module files are 
not supported
        at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModule(String, 
String, Boolean) in ./System/Reflection/Emit/AssemblyBuilder.cs:210
        at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModule(String, 
String) in ./System/Reflection/Emit/AssemblyBuilder.cs:204
        at DynAsmBuilder.DynAsmBuilderApp.Main(String[])


Can mono not create emitted asseblies ?




-- 

John Bailo
jabailo at earthlink.net



More information about the Mono-devel-list mailing list