I am working on migrating a NET Core application that accesses an Informix database so that it can run in a Windows Docker container. I have done a POC and when I run it on my local machine it works correctly. But when I want to run the same application inside a container, an exception is thrown:
Exception thrown: 'System.DllNotFoundException' in IBM.Data.DB2.Core.dll An exception of type 'System.DllNotFoundException' occurred in IBM.Data.DB2.Core.dll but was not handled in user code Unable to load DLL 'db2app64.dll' or one of its dependencies: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
The container is based on the image: microsoft/dotnet:2.2-aspnetcore-runtime-nanoserver-1803 AS base
The main application to migrate is a Web API project (NET Core 2.2)
I am using the IBM.Data.DB2.Core NuGet package (version 188.8.131.52)
Can anybody help?
User contributions licensed under CC BY-SA 3.0