MONO (ARM) running webserver using OWIN - mono

I built mono for armv5 I can run a simple helloworld.exe but when I try to
run webserver which uses owin I am having some problems. I believe I need
the library libmono-system-core4.0-cil but I can't seem to find it anywhere
for arm.
mono-4.2.2.30 was built using
./configure --with-tls=__thread --without-mcs-docs
CFLAGS=-DARM_FPU_NONE
--disable-mcs-build --host=arm-v5te-linux-gnueabi
Here is the error output
Unhandled Exception: System.IO.FileNotFoundException: Could not load
file or assembly 'System.Core, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' or one of its dependencies.
IO.FileName_Name at
Microsoft.Owin.Hosting.Services.ServiceProvider.Add (System.Type
serviceType, System.Type implementationType) <0xb6f608e8 + 0x00047> in
:0 at
Microsoft.Owin.Hosting.Services.ServicesFactory+<>c__DisplayClass1.b__0
(System.Type service, System.Type implementation) <0xb6f608a0 +
0x00033> in :0 at
Microsoft.Owin.Hosting.Services.ServicesFactory+<>c__DisplayClass4.b__3
(System.Type service, System.Type implementation) <0xb6f60200 +
0x0014b> in :0 at
Microsoft.Owin.Hosting.Services.ServicesFactory.DoCallback
(System.Action2 callback) <0xb6f5ffd8 + 0x00037> in <filename
unknown>:0 at
Microsoft.Owin.Hosting.Services.ServicesFactory.DoCallback
(IDictionary2 settings, System.Action2 callback) <0xb6f5f930 +
0x000df> in <filename unknown>:0 at
Microsoft.Owin.Hosting.Services.ServicesFactory.Create (IDictionary2
settings, System.Action1 configuration) <0xb6f5cff8 + 0x00103> in
<filename unknown>:0 at
Microsoft.Owin.Hosting.Services.ServicesFactory.Create (IDictionary2
settings) <0xb6f5cfa8 + 0x00023> in :0 at
Microsoft.Owin.Hosting.WebApp.BuildServices
(Microsoft.Owin.Hosting.StartOptions options) <0xb6f5ce48 + 0x00037>
in :0 at Microsoft.Owin.Hosting.WebApp.Start
(Microsoft.Owin.Hosting.StartOptions options) <0xb6f5cd90 + 0x0001b>
in :0 at
Microsoft.Owin.Hosting.WebApp.Start[TStartup]
(Microsoft.Owin.Hosting.StartOptions options) <0xb6f5c908 + 0x00047>
in :0 at PLT.Web.Program.main (System.String[]
argv) <0xb6f580d0 + 0x0010b> in :0 [ERROR] FATAL
UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load
file or assembly 'System.Core, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' or one of its dependencies.
IO.FileName_Name at
Microsoft.Owin.Hosting.Services.ServiceProvider.Add (System.Type
serviceType, System.Type implementationType) <0xb6f608e8 + 0x00047> in
:0 at
Microsoft.Owin.Hosting.Services.ServicesFactory+<>c__DisplayClass1.b__0
(System.Type service, System.Type implementation) <0xb6f608a0 +
0x00033> in :0 at
Microsoft.Owin.Hosting.Services.ServicesFactory+<>c__DisplayClass4.b__3
(System.Type service, System.Type implementation) <0xb6f60200 +
0x0014b> in :0 at
Microsoft.Owin.Hosting.Services.ServicesFactory.DoCallback
(System.Action2 callback) <0xb6f5ffd8 + 0x00037> in <filename
unknown>:0 at
Microsoft.Owin.Hosting.Services.ServicesFactory.DoCallback
(IDictionary2 settings, System.Action2 callback) <0xb6f5f930 +
0x000df> in <filename unknown>:0 at
Microsoft.Owin.Hosting.Services.ServicesFactory.Create (IDictionary2
settings, System.Action1 configuration) <0xb6f5cff8 + 0x00103> in
<filename unknown>:0 at
Microsoft.Owin.Hosting.Services.ServicesFactory.Create (IDictionary2
settings) <0xb6f5cfa8 + 0x00023> in :0 at
Microsoft.Owin.Hosting.WebApp.BuildServices
(Microsoft.Owin.Hosting.StartOptions options) <0xb6f5ce48 + 0x00037>
in :0 at Microsoft.Owin.Hosting.WebApp.Start
(Microsoft.Owin.Hosting.StartOptions options) <0xb6f5cd90 + 0x0001b>
in :0 at
Microsoft.Owin.Hosting.WebApp.Start[TStartup]
(Microsoft.Owin.Hosting.StartOptions options) <0xb6f5c908 + 0x00047>
in :0 at PLT.Web.Program.main (System.String[]
argv) <0xb6f580d0 + 0x0010b> in :0

Related

Getting "Can't find custom atter constructor image" from a .dll after upgrading to Unity5

I've just upgraded to Unity5 and a small .dll I've made started to give the following error:
Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0
at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in <filename unknown>:0
at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in <filename unknown>:0
at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.LoadReferences () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0
Missing method .ctor in assembly [myproj... .dll], type System.Runtime.Versioning.TargetFrameworkAttribute
The class System.Runtime.Versioning.TargetFrameworkAttribute could not be loaded, used in Logger
Can't find custom attr constructor image: [myproj... .dll]
mtoken: 0x0a00000e
​
The .dll worked perfectly before updating to Unity 5, and I did recompile the .dll with the unity5 version UnityEngine.dll (needed by my library), but that didn't help. Any ideas how to fix this?

Mono exceptions after compile on virtual host

I have compiled mono to a local user on a Debian headless virtual host without sudo.
I am getting the following thrown exception on running a program.
mono Program.exe
What is the origin of the exception below, and how do I resolve it?
Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Windows.Forms.WindowsFormsSynchronizationContext' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.ArgumentNullException: Could not open display (X-Server required. Check your DISPLAY environment variable)
Parameter name: Display
at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) <0x40865c60 + 0x00b8f> in <filename unknown>:0
at System.Windows.Forms.XplatUIX11..ctor () <0x40863f70 + 0x001df> in <filename unknown>:0
at System.Windows.Forms.XplatUIX11.GetInstance () <0x40863da0 + 0x0005b> in <filename unknown>:0
at System.Windows.Forms.XplatUI..cctor () <0x40863a70 + 0x0013b> in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Theme.get_MenuAccessKeysUnderlined () <0x40863a20 + 0x0000f> in <filename unknown>:0
at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () <0x4085f3f0 + 0x00017> in <filename unknown>:0
at System.Windows.Forms.Control..ctor () <0x4085e0f0 + 0x0023b> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor ()
at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () <0x4085f320 + 0x00023> in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Control..ctor () <0x4085e0f0 + 0x00053> in <filename unknown>:0
at System.Windows.Forms.ScrollableControl..ctor () <0x4085dbb0 + 0x00013> in <filename unknown>:0
at System.Windows.Forms.ContainerControl..ctor () <0x4085da20 + 0x0002b> in <filename unknown>:0
at System.Windows.Forms.Form..ctor () <0x4085d210 + 0x000b7> in <filename unknown>:0
at System.Windows.Forms.MessageBox+MessageBoxForm..ctor (IWin32Window owner, System.String text, System.String caption, MessageBoxButtons buttons, MessageBoxIcon icon, Boolean displayHelpButton) <0x4085acb0 + 0x0008f> in <filename unknown>:0
at System.Windows.Forms.MessageBox+MessageBoxForm..ctor (IWin32Window owner, System.String text, System.String caption, MessageBoxButtons buttons, MessageBoxIcon icon) <0x4085ac50 + 0x00047> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.MessageBox+MessageBoxForm:.ctor (System.Windows.Forms.IWin32Window,string,string,System.Windows.Forms.MessageBoxButtons,System.Windows.Forms.MessageBoxIcon)
at System.Windows.Forms.MessageBox.Show (System.String text) <0x4085ab30 + 0x00043> in <filename unknown>:0
at Jackett.Program.Main (System.String[] args) <0x40859a10 + 0x00107> in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Forms.WindowsFormsSynchronizationContext' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.ArgumentNullException: Could not open display (X-Server required. Check your DISPLAY environment variable)
Parameter name: Display
at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) <0x40865c60 + 0x00b8f> in <filename unknown>:0
at System.Windows.Forms.XplatUIX11..ctor () <0x40863f70 + 0x001df> in <filename unknown>:0
at System.Windows.Forms.XplatUIX11.GetInstance () <0x40863da0 + 0x0005b> in <filename unknown>:0
at System.Windows.Forms.XplatUI..cctor () <0x40863a70 + 0x0013b> in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Theme.get_MenuAccessKeysUnderlined () <0x40863a20 + 0x0000f> in <filename unknown>:0
at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () <0x4085f3f0 + 0x00017> in <filename unknown>:0
at System.Windows.Forms.Control..ctor () <0x4085e0f0 + 0x0023b> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor ()
at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () <0x4085f320 + 0x00023> in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Control..ctor () <0x4085e0f0 + 0x00053> in <filename unknown>:0
at System.Windows.Forms.ScrollableControl..ctor () <0x4085dbb0 + 0x00013> in <filename unknown>:0
at System.Windows.Forms.ContainerControl..ctor () <0x4085da20 + 0x0002b> in <filename unknown>:0
at System.Windows.Forms.Form..ctor () <0x4085d210 + 0x000b7> in <filename unknown>:0
at System.Windows.Forms.MessageBox+MessageBoxForm..ctor (IWin32Window owner, System.String text, System.String caption, MessageBoxButtons buttons, MessageBoxIcon icon, Boolean displayHelpButton) <0x4085acb0 + 0x0008f> in <filename unknown>:0
at System.Windows.Forms.MessageBox+MessageBoxForm..ctor (IWin32Window owner, System.String text, System.String caption, MessageBoxButtons buttons, MessageBoxIcon icon) <0x4085ac50 + 0x00047> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.MessageBox+MessageBoxForm:.ctor (System.Windows.Forms.IWin32Window,string,string,System.Windows.Forms.MessageBoxButtons,System.Windows.Forms.MessageBoxIcon)
at System.Windows.Forms.MessageBox.Show (System.String text) <0x4085ab30 + 0x00043> in <filename unknown>:0
at Jackett.Program.Main (System.String[] args) <0x40859a10 + 0x00107> in <filename unknown>:0
nakedmancow#chronos:~/install/Release$ ls
CsQuery.dll Jackett.pdb Newtonsoft.Json.xml
CsQuery.xml Jackett.vshost.exe NLog.dll
CurlSharp.dll Jackett.vshost.exe.config NLog.xml
CurlSharp.pdb Jackett.vshost.exe.manifest WebContent
Jackett.exe ModernHttpClient.dll
Jackett.exe.config Newtonsoft.Json.dll
nakedmancow#chronos:~/install/Release$ mono Jackett.exe
Unhandled Exception:
System.TypeInitializationException: The type initializer for 'System.Windows.Forms.WindowsFormsSynchronizationContext' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.ArgumentNullException: Could not open display (X-Server required. Check your DISPLAY environment variable)
Parameter name: Display
at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) <0x40bd0c60 + 0x00b8f> in <filename unknown>:0
at System.Windows.Forms.XplatUIX11..ctor () <0x40bcef70 + 0x001df> in <filename unknown>:0
at System.Windows.Forms.XplatUIX11.GetInstance () <0x40bceda0 + 0x0005b> in <filename unknown>:0
at System.Windows.Forms.XplatUI..cctor () <0x40bcea70 + 0x0013b> in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Theme.get_MenuAccessKeysUnderlined () <0x40bcea20 + 0x0000f> in <filename unknown>:0
at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () <0x40bca3f0 + 0x00017> in <filename unknown>:0
at System.Windows.Forms.Control..ctor () <0x40bc90f0 + 0x0023b> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor ()
at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () <0x40bca320 + 0x00023> in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Control..ctor () <0x40bc90f0 + 0x00053> in <filename unknown>:0
at System.Windows.Forms.ScrollableControl..ctor () <0x40bc8bb0 + 0x00013> in <filename unknown>:0
at System.Windows.Forms.ContainerControl..ctor () <0x40bc8a20 + 0x0002b> in <filename unknown>:0
at System.Windows.Forms.Form..ctor () <0x40bc8210 + 0x000b7> in <filename unknown>:0
at System.Windows.Forms.MessageBox+MessageBoxForm..ctor (IWin32Window owner, System.String text, System.String caption, MessageBoxButtons buttons, MessageBoxIcon icon, Boolean displayHelpButton) <0x40bc5cb0 + 0x0008f> in <filename unknown>:0
at System.Windows.Forms.MessageBox+MessageBoxForm..ctor (IWin32Window owner, System.String text, System.String caption, MessageBoxButtons buttons, MessageBoxIcon icon) <0x40bc5c50 + 0x00047> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.MessageBox+MessageBoxForm:.ctor (System.Windows.Forms.IWin32Window,string,string,System.Windows.Forms.MessageBoxButtons,System.Windows.Forms.MessageBoxIcon)
at System.Windows.Forms.MessageBox.Show (System.String text) <0x40bc5b30 + 0x00043> in <filename unknown>:0
at Jackett.Program.Main (System.String[] args) <0x40bc4a10 + 0x00107> in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Forms.WindowsFormsSynchronizationContext' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.ArgumentNullException: Could not open display (X-Server required. Check your DISPLAY environment variable)
Parameter name: Display
at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) <0x40bd0c60 + 0x00b8f> in <filename unknown>:0
at System.Windows.Forms.XplatUIX11..ctor () <0x40bcef70 + 0x001df> in <filename unknown>:0
at System.Windows.Forms.XplatUIX11.GetInstance () <0x40bceda0 + 0x0005b> in <filename unknown>:0
at System.Windows.Forms.XplatUI..cctor () <0x40bcea70 + 0x0013b> in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Theme.get_MenuAccessKeysUnderlined () <0x40bcea20 + 0x0000f> in <filename unknown>:0
at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () <0x40bca3f0 + 0x00017> in <filename unknown>:0
at System.Windows.Forms.Control..ctor () <0x40bc90f0 + 0x0023b> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor ()
at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () <0x40bca320 + 0x00023> in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Control..ctor () <0x40bc90f0 + 0x00053> in <filename unknown>:0
at System.Windows.Forms.ScrollableControl..ctor () <0x40bc8bb0 + 0x00013> in <filename unknown>:0
at System.Windows.Forms.ContainerControl..ctor () <0x40bc8a20 + 0x0002b> in <filename unknown>:0
at System.Windows.Forms.Form..ctor () <0x40bc8210 + 0x000b7> in <filename unknown>:0
at System.Windows.Forms.MessageBox+MessageBoxForm..ctor (IWin32Window owner, System.String text, System.String caption, MessageBoxButtons buttons, MessageBoxIcon icon, Boolean displayHelpButton) <0x40bc5cb0 + 0x0008f> in <filename unknown>:0
at System.Windows.Forms.MessageBox+MessageBoxForm..ctor (IWin32Window owner, System.String text, System.String caption, MessageBoxButtons buttons, MessageBoxIcon icon) <0x40bc5c50 + 0x00047> in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.MessageBox+MessageBoxForm:.ctor (System.Windows.Forms.IWin32Window,string,string,System.Windows.Forms.MessageBoxButtons,System.Windows.Forms.MessageBoxIcon)
at System.Windows.Forms.MessageBox.Show (System.String text) <0x40bc5b30 + 0x00043> in <filename unknown>:0
at Jackett.Program.Main (System.String[] args) <0x40bc4a10 + 0x00107> in <filename unknown>:0
'System.Windows.Forms.XplatUI' threw an exception. --->
System.ArgumentNullException: Could not open display (X-Server required. Check your DISPLAY environment variable)
Is this VM running a x-server based GUI (x-server/Gnome/Unity/KDE/...)?
If yes, are you root? Try as a normal user, no sudo, no su.
If no, that just will not work ;-)
Mono's Windows Forms implementation requires X11 to be present on Linux. As this is a headless instance like you described, it just fails to meet the requirements and leads to the exceptions.

Error building Xamarin iOS project

After switching to the unified API, while I try to build an iOS application using Xamarin.iOS, I'm getting an error:
error : Error building target _DetectSigningIdentity: Unknown char
Anyone has an idea how to solve it or understands what causes this error?
This is the detailed trace:
error : Error building target _DetectSigningIdentity: Unknown char
Error building target _DetectSigningIdentity: System.FormatException: Unknown char
at System.Double.Parse (System.String s, NumberStyles style, IFormatProvider provider) [0x00000] in :0
at System.Single.Parse (System.String s, IFormatProvider provider) [0x00000] in :0
at Microsoft.Build.BuildEngine.ConditionFactorExpression.NumberEvaluate (Microsoft.Build.BuildEngine.Project context) [0x00000] in :0
at Microsoft.Build.BuildEngine.ConditionRelationalExpression.BoolEvaluate (Microsoft.Build.BuildEngine.Project context) [0x00000] in :0
at Microsoft.Build.BuildEngine.ConditionAndExpression.BoolEvaluate (Microsoft.Build.BuildEngine.Project context) [0x00000] in :0
at Microsoft.Build.BuildEngine.ConditionParser.ParseAndEvaluate (System.String condition, Microsoft.Build.BuildEngine.Project context) [0x00000] in :0
at Microsoft.Build.BuildEngine.TaskBatchingImpl.Execute (IBuildTask buildTask, TaskExecutionMode taskExecutionMode) [0x00000] in :0
at Microsoft.Build.BuildEngine.TaskBatchingImpl.Build (IBuildTask buildTask, TaskExecutionMode taskExecutionMode, System.Boolean& executeOnErrors) [0x00000] in :0
at Microsoft.Build.BuildEngine.TargetBatchingImpl.RunTargetWithBucket (System.Collections.Generic.Dictionary`2 bucket, Microsoft.Build.BuildEngine.Target target, System.Boolean& executeOnErrors) [0x00000] in :0
at Microsoft.Build.BuildEngine.TargetBatchingImpl.Run (Microsoft.Build.BuildEngine.Target target, System.Boolean& executeOnErrors) [0x00000] in :0
at Microsoft.Build.BuildEngine.TargetBatchingImpl.Build (Microsoft.Build.BuildEngine.Target target, System.Boolean& executeOnErrors) [0x00000] in :0
at Microsoft.Build.BuildEngine.Target.DoBuild (System.Boolean& executeOnErrors) [0x00000] in :0

Is it MonoDevelop's bug?

I use Debian Squeeze and MonoDevelop 2.4 for my program and I have some problems with it. When I trying to save my project's changes, I have next message dialog of MonoDevelop:
System.NullReferenceException: Object reference not set to an instance of an object
at MonoDevelop.GtkCore.GuiBuilder.CodeBinder.IsValidClass (MonoDevelop.Projects.Dom.Parser.ProjectDom ctx, IType cls, Stetic.Component obj) [0x00000] in :0
at MonoDevelop.GtkCore.GuiBuilder.CodeBinder.GetClass (Boolean getUserClass) [0x00000] in :0
at MonoDevelop.GtkCore.GuiBuilder.CodeBinder.GetClass () [0x00000] in :0
at MonoDevelop.GtkCore.GuiBuilder.CodeBinder.UpdateBindings (System.String fileName) [0x00000] in :0
at MonoDevelop.GtkCore.GuiBuilder.GuiBuilderView.Save (System.String fileName) [0x00000] in :0
at MonoDevelop.Ide.Gui.Document.Save () [0x00000] in :0
at MonoDevelop.Ide.Gui.Workbench.SaveAll () [0x00000] in :0
at MonoDevelop.Ide.Commands.SaveAllHandler.Run () [0x00000] in :0
at MonoDevelop.Components.Commands.CommandHandler.Run (System.Object dataItem) [0x00000] in :0
at MonoDevelop.Components.Commands.CommandHandler.InternalRun (System.Object dataItem) [0x00000] in :0
at MonoDevelop.Components.Commands.CommandManager.DefaultDispatchCommand (MonoDevelop.Components.Commands.ActionCommand cmd, MonoDevelop.Components.Commands.CommandInfo info, System.Object dataItem, System.Object target, CommandSource source) [0x00000] in :0
at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x00000] in :0
When I trying to add some event for my project's form, I have the same. What does it mean and how can I fix this problem?
You should try to use latest Mono and latest MonoDevelop,
http://pkg-mono.alioth.debian.org/ (3.0.6)
http://monodevelop.com/Download (4.0.8)
MonoDevelop 2.4.* was two years ago,
http://monodevelop.com/Download/MonoDevelop_2.4.2_Released?highlight=2.4+release+notes

Embedded mono + app.config

I have embedded mono in a c++ program and loaded a dll which requires an app.config. I am getting this kind of error, does someone have an idea on how to ship *.config with an embedded mono ?
The stack trace :
System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. ---> System.ArgumentException: The 'ExeConfigFilename' argument cannot be null.
at System.Configuration.ExeConfigurationHost.CheckFileMap (ConfigurationUserLevel level, System.Configuration.ExeConfigurationFileMap map) [0x00000] in <filename unknown>:0
at System.Configuration.ExeConfigurationHost.InitForConfiguration (System.String& locationSubPath, System.String& configPath, System.String& locationConfigPath, IInternalConfigRoot root, System.Object[] hostInitConfigurationParams) [0x00000] in <filename unknown>:0
at System.C[] hostInitConfigurationParams) [0x00000] in <filename unknown>:0
at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) [0x00000] in <filename unknown>:0
at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in <filename unknown>:0 onfiguration.InternalConfigurationSystem.InitForConfiguration (System.String& locationConfigPath, System.String& parentConfigPath, System.String& parentLocationConfigPath) [0x00000] in <filename unknown>:0
at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00000] in <filename unknown>:0
at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object
Self answer : you can't (as of 2013-04-30). To enable this behaviour, I had to change mono's framework sources mono/mcs/class/corlib/system/appdomain.cs :
public AppDomainSetup SetupInformation {
get {
return SetupInformationNoCopy; // newline
// AppDomainSetup setup = getSetup (); //old
// return new AppDomainSetup (setup); //old
}
}