4

I build my application like this:

mkbundle --static -o de --deps DeviceEmulator.exe 
UnionArgParser.dll Emulators.dll NLog.dll Protocol.dll
FSharpx.Core.dll

When i run ./de on same machine application works fine. But when i copy to other machine (i use lxc container) and start i got an error:

Exception: System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. System.Configuration.ConfigurationErrorsException: Unrecognized configuration section (/home/ubuntu/tests/device/DeviceEmulator.exe.config line 3)

Addition

I found solution myself. Need to pass parameter --machine-config <path to my mono/runtime/etc/mono/4.0/machine.config> when bundle. This is solve problem with error.

Greg B
  • 14,597
  • 18
  • 87
  • 141
couchemar
  • 1,927
  • 19
  • 22

0 Answers0