[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 14:46:27 EDT 2006

Andrus wrote:
>>>> 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-\bin\mono.exe"  i:\mydir\myapp\myapp\bin\debug\myapp.exe
>> Assure that the "run directory" of the shortcut is
>> "C:\Program Files\Mono-\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 ?

The content of the config is probably irrelevant. I guess
solely the existence of the config is triggering the error.

Restore the .config and try to start the app from the
command line (use the "Mono- Command Line" shortcut).
Does the error persist?


More information about the Mono-list mailing list