[Mono-list] Npgsql.NpgsqlClosedState.Open An exception was thrown by the type initializer for System.Net.Dns

Andrus kobruleht2 at hot.ee
Mon Oct 23 13:14:47 EDT 2006


>>> It looks like Mono can't find its machine.config.
>>> How do you invoke mono.exe?
>> 
>> I use shortcut icon in quick launch. Target is
>> 
>> "C:\Program Files\Mono-1.1.17.1\bin\mono.exe"  i:\mydir\myapp\myapp\bin\debug\myapp.exe
> 
> Assure that the "run directory" of the shortcut is
> "C:\Program Files\Mono-1.1.17.1\bin\".

Thank you. This is my "run directory" but the problem persists.
After deleting   i:\mydir\myapp\myapp\bin\debug\myapp.exe.config file my application starts.
So it seems that something in application config file causes this error.
Why this confing file causes error ?

Andrus.

<configuration>
 <configSections>
  <section name="databaseSets" type="System.Configuration.NameValueSectionHandler, 
         System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
  <section name="databases" type="System.Configuration.NameValueSectionHandler, 
         System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> 
 </configSections>
 <appSettings>
  <!-- Specifies if tooltips are displayed
  -->
  <add key="DisplayToolTips" value="true" />
  
  <add key="EventLog\Level" value="Verbose" />
  <add key="EventLog\Machine" value="." />
  <add key="EventLog\Name" value="Application" />
    
  <add key="TraceLog\Machine" value="." />
  <add key="TraceLog\Name" value="Application" />
    
     <add key="TransactionLog\Machine" value="." />
     <add key="TransactionLog\Name" value="Application" />
  
  <add key="LocalizeApp" value="false" />
  
     <add key="DefaultLanguage" value="1" />
     
  <add key="MessageDatabaseKey" value="" />
  
  <add key="SecurityDatabaseKey" value="" />
     
 </appSettings>
 <databases>
  <add key="Northwind\Connection" value="server=(local);uid=sa;pwd=;database=NorthWind;" />
 </databases>
 <system.windows.forms jitDebugging="true" />
</configuration>




More information about the Mono-list mailing list