Using Npgsql with .net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pathmakumara
    New Member
    • Mar 2008
    • 3

    Using Npgsql with .net

    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= 0738eb9f132ed75 6' 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.d ll but I coudn't find

    Help me...

    Thanks all of you
  • BangaloreGuys
    New Member
    • Mar 2008
    • 2

    #2
    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= 0738eb9f132ed75 6' 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.d ll 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.d ll.

    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.d ll,Npgsql
    You Must add both DLL then run it'll work perfectly.

    Comment

    • pathmakumara
      New Member
      • Mar 2008
      • 3

      #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=10001 40&release_id=9 58

      it contains only three files with Npgsql.dll.

      Thanks

      Comment

      • BangaloreGuys
        New Member
        • Mar 2008
        • 2

        #4
        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=10001 40&release_id=9 58

        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

        Comment

        • pathmakumara
          New Member
          • Mar 2008
          • 3

          #5
          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

          Comment

          • prevandito
            New Member
            • Jan 2009
            • 1

            #6
            Fyuhhhh

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

            Comment

            • skosanabv
              New Member
              • Mar 2013
              • 1

              #7
              It really helped me

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

              Originally posted by BangaloreGuys
              hi pathmakumara,

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

              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.d ll,Npgsql
              You Must add both DLL then run it'll work perfectly.

              Comment

              Working...