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)
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'

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