Server library could not be loaded and the dynamic link library LIBPQ.dll

user2969149

Please i have a serious problem here. When i want to debug my application in visual studio i have this message box error : "The ordinal 133 could not be located in the dynamic link library LIBPQ.dll". this dll belongs to PostgreSQL 8.3.8. Note that i'm using also ArcSDE 10. After that it give me the following message in visual studio "Server library could not be loaded". Here there is the code that i use for my connection to arcsde. Normally it did work before in my other applications.

class sdeConnection
    {
        IWorkspace m_pWorkSpace;
        NpgsqlConnection m_pCnx;
        IFeatureWorkspace m_pFeatWorkSpace;
        ISqlWorkspace m_pSqlWorkSpace;
        string m_version;               

// Version of the database to be used for the update data
    public sdeConnection()
    {
        // ArcSDE Connexion 
        Type factoryType = Type.GetTypeFromProgID("esriDataSourcesGDB.SqlWorkspaceFactory");
        IWorkspaceFactory workspaceFactory = (IWorkspaceFactory)Activator.CreateInstance(factoryType);

        // create the connection to the database server
        IPropertySet pCnxProp = new PropertySet();
        pCnxProp.SetProperty("dbclient", "PostgreSQL");
        pCnxProp.SetProperty("serverinstance", "localhost");
        pCnxProp.SetProperty("instance", "5432");
        pCnxProp.SetProperty("authentication_mode", "DBMS");
        pCnxProp.SetProperty("database", "sde");
        pCnxProp.SetProperty("user", "sde");
        pCnxProp.SetProperty("password", "geoserver");

        // Creation of the workspace
        m_pWorkSpace = workspaceFactory.Open(pCnxProp, 0); **it gave the second error here (Server library could not be loaded)**

        // Npgsql Connextion 

        m_pCnx = new NpgsqlConnection("server=localhost;port=5432;database=sde;user=sde;pwd=geoserver");

    }
}
user2969149

i finally found where was the problem. When installing postgres , i added the path of it to the environment variable. So it created a copy of library of postgress in the windows32 folder . So there was a consfusion between libraries. So i removed the path in the environment variable and i deleted all librairies created in the win32 folder. it work very well now :).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

The dynamic link library for GLPK for Java could not be loaded. Eclipse

From Dev

Could not be located in dynamic link library php4ts.dll

From Dev

The ordinal 3283 could not be located in the dynamic link library libmysql.dll

From Dev

Dll Library was found but could not be loaded in FME

From Dev

FMUException: Error loading the binary. Could not load the DLL: A dynamic link library (DLL) initialization routine failed

From Dev

Will dynamic link library must be loaded into RAM

From Dev

Build tesseract as DLL Dynamic link library

From Dev

The procedure entry point ... renderSynchronous@QRenderAspectPrivate@Qt3DRender ... could not be located in the dynamic link library ... *.dll

From Dev

The procedure entiy point_JVM_GetClassMethod@24 could not belocated in the dynamic link library jvm.dll

From Dev

The procedure entry point _ZSt24__throw_out_of_range_fmtPKcz could not be located in the dynamic link library sfml-graphics-2.dll

From Dev

The procedure entry point clCreateCommandQueueWithProperties could not be located in the dynamic link library

From Dev

The procedure entry point could not be located in dynamic link library

From Javascript

Electron Uncaught Error: A dynamic link library (DLL) initialization routine failed

From Dev

C#: A dynamic link library (DLL) initialization routine failed

From Dev

Compaq Visual Fortran 6.6, Dynamic-Link Library (DLL) and Module

From Dev

Dynamic link library in C

From Dev

Could not link CPLEX library in R

From Dev

Could not load dynamic library 'cudnn64_8.dll'; dlerror: cudnn64_8.dll not found

From Dev

GRASS r.in.gdal crash:procedure entry point sqlite3_rtree_geometry_callback could not be located in the dynamic link library spatialite.dll

From Dev

Msys2 GDB error "The procedure entry point dllMain could not be located in the dynamic link library C:\msys64\mingw64\bin\libncursesw6.dll"

From Dev

VSTOInstaller.exe error 0x8007007F The procedure entry point GetFileVersionInfoExW could not be located in the dynamic link library VERSION.dll

From Dev

libpq library in centos

From Dev

Tensorflow : DLL load failed: A dynamic link library (DLL) initialization routine failed

From Dev

XGBoost Library (libxgboost.so) could not be loaded

From Java

Check if a dll library is already loaded? (Java)

From Dev

Attach library DLL cannot be loaded by application

From Dev

Unable to link dynamic library in macOS

From Dev

Pass function to dynamic link library

From Dev

Unable to load dynamic library php_zmq.dll - The specified module could not be found

Related Related

  1. 1

    The dynamic link library for GLPK for Java could not be loaded. Eclipse

  2. 2

    Could not be located in dynamic link library php4ts.dll

  3. 3

    The ordinal 3283 could not be located in the dynamic link library libmysql.dll

  4. 4

    Dll Library was found but could not be loaded in FME

  5. 5

    FMUException: Error loading the binary. Could not load the DLL: A dynamic link library (DLL) initialization routine failed

  6. 6

    Will dynamic link library must be loaded into RAM

  7. 7

    Build tesseract as DLL Dynamic link library

  8. 8

    The procedure entry point ... renderSynchronous@QRenderAspectPrivate@Qt3DRender ... could not be located in the dynamic link library ... *.dll

  9. 9

    The procedure entiy point_JVM_GetClassMethod@24 could not belocated in the dynamic link library jvm.dll

  10. 10

    The procedure entry point _ZSt24__throw_out_of_range_fmtPKcz could not be located in the dynamic link library sfml-graphics-2.dll

  11. 11

    The procedure entry point clCreateCommandQueueWithProperties could not be located in the dynamic link library

  12. 12

    The procedure entry point could not be located in dynamic link library

  13. 13

    Electron Uncaught Error: A dynamic link library (DLL) initialization routine failed

  14. 14

    C#: A dynamic link library (DLL) initialization routine failed

  15. 15

    Compaq Visual Fortran 6.6, Dynamic-Link Library (DLL) and Module

  16. 16

    Dynamic link library in C

  17. 17

    Could not link CPLEX library in R

  18. 18

    Could not load dynamic library 'cudnn64_8.dll'; dlerror: cudnn64_8.dll not found

  19. 19

    GRASS r.in.gdal crash:procedure entry point sqlite3_rtree_geometry_callback could not be located in the dynamic link library spatialite.dll

  20. 20

    Msys2 GDB error "The procedure entry point dllMain could not be located in the dynamic link library C:\msys64\mingw64\bin\libncursesw6.dll"

  21. 21

    VSTOInstaller.exe error 0x8007007F The procedure entry point GetFileVersionInfoExW could not be located in the dynamic link library VERSION.dll

  22. 22

    libpq library in centos

  23. 23

    Tensorflow : DLL load failed: A dynamic link library (DLL) initialization routine failed

  24. 24

    XGBoost Library (libxgboost.so) could not be loaded

  25. 25

    Check if a dll library is already loaded? (Java)

  26. 26

    Attach library DLL cannot be loaded by application

  27. 27

    Unable to link dynamic library in macOS

  28. 28

    Pass function to dynamic link library

  29. 29

    Unable to load dynamic library php_zmq.dll - The specified module could not be found

HotTag

Archive