[Mono-list] Re: Npgsql doesn't work anymore

Francisco Figueiredo Jr. fxjrlists@yahoo.com.br
Fri, 19 Mar 2004 17:35:10 -0300 (ART)

 --- Jaroslaw Kowalski <jaak@zd.com.pl> escreveu: 
> I'm using Fedora Core 1 with "postgresql-server-7.3.4-11" installed from RPM
> and Npgsql (from Mono/CVS) doesn't work for me (while it used to work
> properly about one month ago).
> I get "System.NullReferenceException : Object reference not set to an
> instance of an object" when connecting. The problem seems to occur in
> NpgsqlConnection.ProcessServerVersion().

>              if (BackendProtocolVersion == ProtocolVersion.Version2)
>              {
> and it prints "_serverVersion is null". It obviously fails on
> _serverVersion.IndexOf() right after that.
> My ConnectionString is:
> 'Server=fw.home.lan;Initial Catalog=SoodaUnitTests;User
> Id=mono;Password=mono'
> I can provide more debug info but I don't know what exactly is needed here.
> Any ideas?

Hi Jaroslaw.

I'm checking that.
In my nunit tests here I'm not getting this problem.
We had this problem some time ago, but we already fixed it. But may there is
some case which is still getting problems.

In the Open method, near its end, and before the call to ProcessServerVersion
there is a line:

ServerVersion = Connector.ServerVersion;

Could you check what is the value of ServerVersion when this code executes?

Also, a little bit above, is where we set the Connector.ServerVersion. Could
you also check what value is being set?

Thanks in advance.


Francisco Figueiredo Jr.


Yahoo! Mail - O melhor e-mail do Brasil! Abra sua conta agora: