Unable to load shared library 'db2app64.dll'

.net .net-core db2 entity-framework entity-framework-core

Question

Currently working with IBM DB2, Openshift and Linux using the IBM DB .NET Core Provider.

When running the application it errors with

System.DllNotFoundException: Unable to load shared library 'db2app64.dll' or one of its dependencies.

In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable:

libdb2app64.dll: cannot open shared object file: No such file or directory at IBM.Data.DB2.Core.UnsafeNativeMethods.DB232.SQLFreeConnAttribsADONET(DB2SQLGetConnAttribsADONETParams& pParam)

1
1
4/2/2019 7:28:51 AM

Accepted Answer

The solution was to reference the IBM.EntityFrameworkCore-lnx for Linux builds.

.net was attempting to load the windows library db2app64.dll hence the reason why it was throwing the error. Unable to load shared library 'db2app64.dll'

enter image description here

1
4/3/2019 9:41:10 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow