Access Informix using C# (Net Core 2.2) inside a Windows Docker container

1

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

Can anybody help?

c#
docker
.net-core
db2
informix
asked on Stack Overflow Mar 25, 2019 by jdelm • edited Mar 25, 2019 by jdelm

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0