Installing the Npgsql provider for .Net

From: "Rob Richardson" <Rob(dot)Richardson(at)rad-con(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Installing the Npgsql provider for .Net
Date: 2009-01-06 19:38:00
Message-ID: 04A6DB42D2BA534FAC77B90562A6A03DBF26B2@server.rad-con.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Greetings!

I am trying to learn how to use ADO.Net to access a PostGRESQL database
through C#, using MS Visual Studio 2008 on a Windows XP Pro box. At
first, I was using the PgOldDb provider for .Net, but it seems that that
provider is not complete. It did not work for me. I switched to ODBC
and was able to perform the update operations I spent more than a day
struggling with. I would still like to use OLE DB instead of ODBC, as I
understand that it is faster and more compatible with the .Net
architecture. So I tried the Npgsql provider. I was dismayed to see
that there are no installation instructions on the PGFoundry download
page, but a Google search turned up a user's manual. According to that,
all I had to do was to put the npgsql.dll file into a known location,
and if I wanted IntelliSense to work, I had to put into the GAC as well.
So I did. But when I tried to run an application using it, an exception
was thrown complaining that it could not find file or assembly
Mono.Security.

Do I have the wrong file? I loaded the .Net 2.0 version (or so I
thought). Do I need another file? Should I use a different provider
entirely?

Thank you very much.

RobR

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Francisco Figueiredo Jr. 2009-01-06 20:16:08 Re: Installing the Npgsql provider for .Net
Previous Message Pedro Doria Meunier 2009-01-06 19:18:07 Re: COPY ... FROM Permission denied ...