Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to load shared library 'db2app64.dll'

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)

like image 359
Andrew Avatar asked Dec 12 '25 01:12

Andrew


1 Answers

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

like image 104
Andrew Avatar answered Dec 14 '25 19:12

Andrew



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!