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

Robert Jordan robertj at gmx.net
Mon Oct 23 12:02:07 EDT 2006


Andrus wrote:
>>> npgsqlConnection1.Open()  causes error
>>> An exception was thrown by the type initializer for System.Net.Dns
> 
>> 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\".

Robert



More information about the Mono-list mailing list