Installing the Npgsql provider for .Net - Mailing list pgsql-general

From Rob Richardson
Subject Installing the Npgsql provider for .Net
Date
Msg-id 04A6DB42D2BA534FAC77B90562A6A03DBF26B2@server.rad-con.local
Whole thread Raw
Responses Re: Installing the Npgsql provider for .Net
Generic provider for .Net
List 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
 

pgsql-general by date:

Previous
From: Pedro Doria Meunier
Date:
Subject: Re: COPY ... FROM Permission denied ...
Next
From: "Francisco Figueiredo Jr."
Date:
Subject: Re: Installing the Npgsql provider for .Net