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

Robert Jordan robertj at gmx.net
Sun Oct 22 19:25:02 EDT 2006


Andrus wrote:
> npgsqlConnection1.Open()  causes error
> 
> An exception was thrown by the type initializer for System.Net.Dns
> 
> Stack trace:
> at Npgsql.NpgsqlClosedState.Open (Npgsql.NpgsqlConnector context) [0x00000]
>   at Npgsql.NpgsqlConnector.Open () [0x00000]
>   at Npgsql.NpgsqlConnectorPool.GetPooledConnector (Npgsql.NpgsqlConnection
> Connection) [0x00000]
> 
> Stack trace from exception object is incomplete. I have no idea why.
> How to fix this ?

It looks like Mono can't find its machine.config.
How do you invoke mono.exe?

Robert



More information about the Mono-list mailing list