473,487 Members | 2,601 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Using Npgsql with .net

3 New Member
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
6 34923
BangaloreGuys
2 New Member
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
pathmakumara
3 New Member
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
BangaloreGuys
2 New Member
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
pathmakumara
3 New Member
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
prevandito
1 New Member
I've been googling it all the time. Many thanks...
Jan 3 '09 #6
skosanabv
1 New Member
Hi, Thank you for this article, it really worked form me. Once again many thanks. ;)

@BangaloreGuys
Mar 4 '13 #7

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

Similar topics

5
5681
by: Enos Meroka | last post by:
Hallo, I am a student doing my project in the university.. I have been trying to compile the program using HP -UX aCC compiler, however I keep on getting the following errors. ...
8
2388
by: acb | last post by:
Hi, I wrote a DLL Component (using Visual Studio 2005) and managed to include it into a C# Console application. I am now trying to include this component into a Web project. I copy the DLL...
0
2534
by: Eugene Anthony | last post by:
The problem with my coding is that despite removing the records stored in the array list, the rptPages repeater control is still visible. The rptPages repeater control displayes the navigation...
1
1758
by: rhepsi | last post by:
Is there a way to use NPGSQL with SSL-Connections in web applications on a Windows 2003 Server?
1
3048
by: yales | last post by:
I am using visual c# (postgreSQL as DB and Npgsql as data provider) and now I need to print a report. I am trying to use Crystal Reports but I cannot connect the data source. How can I connect...
1
1486
by: sambarker123 | last post by:
Hi all, I am using NPGSQL to connect to postgres server.I am getting exception at the first statement in the try block. string not recognised as a vaild date time NpgsqlCommand command3 =...
0
4235
by: pykie101 | last post by:
Hi, I'm trying to use a dictionary with c# and npgsql in visual studio 2008 and I'm unsure how, i'm very new to postgresql, npgsql, and .net infact! (3rd week). There are multiple keys and values in...
2
2300
by: ghjk | last post by:
I'm new to c# and didn't write any c# code yet. I'm using postgres database. I want to connect to postgres and retriew some data to test my database connectivity. This is my code. using System;...
0
1560
by: sudha yogeesh | last post by:
Dear all I am using npgsql version 1 to connect to postgresql 8.4 from asp.net. Now npgsql ver 2.11 is available. But it is not clear which version can be used. There is npgsql for mst.net,...
0
7106
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7349
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5442
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4874
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.