Running new LicenseManager() in .NET Core Linux Docker Container throws Exception
Posted: Sat Oct 02, 2021 4:56 am
The line
var oLicenseManager = new LicenseManager();
creates the following Exception running in a linux container:
Unhandled exception. System.DllNotFoundException: Unable to load shared library 'msvcrt.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libmsvcrt.dll: cannot open shared object file: No such file or directory
at ᠺ._controlfp(UInt32 A_0, UInt32 A_1)
at ᢀ.ᜀ(Boolean A_0, Int32 A_1, Boolean A_2)
at GdPicture14.LicenseManager..ctor()
This means it has a direct dependency to a windows dll, which is ofcourse not existing in my container.
How to fix this?
var oLicenseManager = new LicenseManager();
creates the following Exception running in a linux container:
Unhandled exception. System.DllNotFoundException: Unable to load shared library 'msvcrt.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libmsvcrt.dll: cannot open shared object file: No such file or directory
at ᠺ._controlfp(UInt32 A_0, UInt32 A_1)
at ᢀ.ᜀ(Boolean A_0, Int32 A_1, Boolean A_2)
at GdPicture14.LicenseManager..ctor()
This means it has a direct dependency to a windows dll, which is ofcourse not existing in my container.
How to fix this?