[Mono-dev] Issue with embedding machine.config

Ricardo Ruiz ricardo.ruiz at ignitetech.com
Tue Dec 18 12:36:04 EST 2007


Here is another issue with mkbundle.exe... same setup: using Mono
v1.2.5.2 and cygwin under Windows XP for my shell. 

If I generate a bundle with the config dir specified:

$ mono mkbundle.exe -o ./Bundled/Bundled.exe --deps --config-dir .
MyConsole.exe 

OS is: Windows
Sources: 1 Auto-dependencies: True
   embedding: c:\Temp\Mono Test\Linked\MyConsole.exe
   embedding: c:\Mono\lib\mono\2.0\mscorlib.dll
   embedding:
c:\Mono\lib\mono\gac\System\2.0.0.0__b77a5c561934e089\System.dll
   embedding:
c:\Mono\lib\mono\gac\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\Syst
em.Configuration.dll
   embedding:
c:\Mono\lib\mono\gac\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll
   embedding:
c:\Mono\lib\mono\gac\System.Security\2.0.0.0__b03f5f7f11d50a3a\System.Se
curity.dll
   embedding:
c:\Mono\lib\mono\gac\Mono.Security\2.0.0.0__0738eb9f132ed756\Mono.Securi
ty.dll
Compiling:
as -o temp.o temp.s
gcc -mno-cygwin -g -o ./Bundled/Bundled.exe -Wall temp.c `pkg-config
--cflags --libs mono`  temp.o Done

The app works fine as long as I place machine.config on ./mono/2.0.
Great! Now lets try embedding it!

$ mono mkbundle.exe -o ./Bundled/Bundled.exe --deps --config
machine.config MyConsole.exe OS is: Windows
Sources: 1 Auto-dependencies: True
   embedding: c:\Temp\Mono Test\Linked\MyConsole.exe
   embedding: c:\Mono\lib\mono\2.0\mscorlib.dll
   embedding:
c:\Mono\lib\mono\gac\System\2.0.0.0__b77a5c561934e089\System.dll
   embedding:
c:\Mono\lib\mono\gac\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\Syst
em.Configuration.dll
   embedding:
c:\Mono\lib\mono\gac\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll
   embedding:
c:\Mono\lib\mono\gac\System.Security\2.0.0.0__b03f5f7f11d50a3a\System.Se
curity.dll
   embedding:
c:\Mono\lib\mono\gac\Mono.Security\2.0.0.0__0738eb9f132ed756\Mono.Securi
ty.dll
System config from: machine.config
Compiling:
as -o temp.o temp.s
gcc -mno-cygwin -g -o ./Bundled/Bundled.exe -Wall temp.c `pkg-config
--cflags --libs mono`  temp.o Done

Now the app fails with a System.NotSupportedException error. Which is
the same error I get if I delete the config file from ./mono/2.0 in the
previous step. Any idea why? 

Thanks!!

Ricardo Ruiz, Development
Ignite Technologies
3211 Internet Blvd., Suite 300 
Frisco, Texas 75034
Phone - 972.348.6429
ricardo.ruiz at ignitetech.com



More information about the Mono-devel-list mailing list