By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,686 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Using Npgsql with .net

P: 3
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
Mar 4 '08 #1
Share this Question
Share on Google+
6 Replies


P: 2
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.
Mar 4 '08 #2

P: 3
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
Mar 4 '08 #3

P: 2
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
Mar 4 '08 #4

P: 3
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
Mar 5 '08 #5

P: 1
I've been googling it all the time. Many thanks...
Jan 3 '09 #6

P: 1
Hi, Thank you for this article, it really worked form me. Once again many thanks. ;)

@BangaloreGuys
Mar 4 '13 #7

Post your reply

Sign in to post your reply or Sign up for a free account.