title: Embedded mono + app.config
body: <p>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 <em>*</em>.config with an embedded mono ?</p>
  
  <p>The stack trace : </p>
  
  <pre><code>System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. ---&gt; System.ArgumentException: The 'ExeConfigFilename' argument cannot be null.
    at System.Configuration.ExeConfigurationHost.CheckFileMap (ConfigurationUserLevel level, System.Configuration.ExeConfigurationFileMap map) [0x00000] in &lt;filename unknown&gt;:0 
    at System.Configuration.ExeConfigurationHost.InitForConfiguration (System.String&amp; locationSubPath, System.String&amp; configPath, System.String&amp; locationConfigPath, IInternalConfigRoot root, System.Object[] hostInitConfigurationParams) [0x00000] in &lt;filename unknown&gt;:0 
    at System.C[] hostInitConfigurationParams) [0x00000] in &lt;filename unknown&gt;:0 
    at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) [0x00000] in &lt;filename unknown&gt;:0 
    at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00000] in &lt;filename unknown&gt;:0 onfiguration.InternalConfigurationSystem.InitForConfiguration (System.String&amp; locationConfigPath, System.String&amp; parentConfigPath, System.String&amp; parentLocationConfigPath) [0x00000] in &lt;filename unknown&gt;:0 
    at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x00000] in &lt;filename unknown&gt;:0 
    at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object
  </code></pre>