Connecting Tech Pros Worldwide Help | Site Map

Using Npgsql with .net

Newbie
 
Join Date: Mar 2008
Posts: 3
#1: Mar 4 '08
I added the reference to Npgsql.dll and run the application. it gives this run time error


Could not load file or assembly 'Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I tried to find Mono.Serurity.dll but I coudn't find

Help me...

Thanks all of you
Newbie
 
Join Date: Mar 2008
Posts: 2
#2: Mar 4 '08

re: Using Npgsql with .net


Quote:

Originally Posted by pathmakumara

I added the reference to Npgsql.dll and run the application. it gives this run time error


Could not load file or assembly 'Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I tried to find Mono.Serurity.dll but I coudn't find

Help me...

Thanks all of you




hi pathmakumara,

U have added Npgsql.dll only so, this type of errors occured.
u have to add mono.security.dll.

follow this,
steps, right click, Add refference,
goto npsql folder, it included three folders, like doc,Mono,MS1.1

now click the MS1.1 folder It has two .dll - like Mono.Security.dll,Npgsql
You Must add both DLL then run it'll work perfectly.
Newbie
 
Join Date: Mar 2008
Posts: 3
#3: Mar 4 '08

re: Using Npgsql with .net


Thanks a lot to who reply me

But the problem with me now is where should I download the folder. Because I download from this link

http://pgfoundry.org/frs/?group_id=1000140&release_id=958

it contains only three files with Npgsql.dll.

Thanks
Newbie
 
Join Date: Mar 2008
Posts: 2
#4: Mar 4 '08

re: Using Npgsql with .net


Quote:

Originally Posted by pathmakumara

Thanks a lot to who reply me

But the problem with me now is where should I download the folder. Because I download from this link

http://pgfoundry.org/frs/?group_id=1000140&release_id=958

it contains only three files with Npgsql.dll.

Thanks



hello pathmakumara, u don't downloaded the dll.

you have to add the dll in your "Bin folder" in ur appln. right click Bin folder,
select Add refference and then click the browse button, where you have installed your Postgresql . i think it will be installed C drive. in the C drive program files,
PostgreSQL, and then it has subfolder like 8.1, click this It has folder like Npgsql , click Npgsql It has three folder U click the M.S1.1, This folder contain Two .DLL . U Must Select Both DLL and Add ur Bin folder. Now run it ... Don't Downloaded these dll Because already having both dll in ur npgsql.

regards,
Bangalore Guys...
and
Newbie
 
Join Date: Mar 2008
Posts: 3
#5: Mar 5 '08

re: Using Npgsql with .net


thanks so much

But I am using Postgresql version 8.3 and Installation notes says that Npgsql is not in a directory and Npgsql is installed int Global assembly cash. But I couldn't still overcome the problem. If there is idea, tell me. Thanks again

manjula
Newbie
 
Join Date: Jan 2009
Posts: 1
#6: Jan 3 '09

re: Using Npgsql with .net


I've been googling it all the time. Many thanks...
Reply