[Mono-list] Npgsql.NpgsqlClosedState.Open An exception was thrown by the type initializer for System.Net.Dns
robertj at gmx.net
Mon Oct 23 14:46:27 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-184.108.40.206\bin\mono.exe" i:\mydir\myapp\myapp\bin\debug\myapp.exe
>> Assure that the "run directory" of the shortcut is
>> "C:\Program Files\Mono-220.127.116.11\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-18.104.22.168 Command Line" shortcut).
Does the error persist?
More information about the Mono-list