查看单个帖子
旧 2019-11-26, 19:22   #1
poster
高级会员
 
注册日期: 2019-11-21
帖子: 3,006
声望力: 66
poster 正向着好的方向发展
默认 MATLAB on a Docker windows container

We have a some WCF services which we are trying to move to a Docker container. We are using mcr.microsoft.com/dotnet/framework/wcf as our base image and have been able to setup the WCF services.



But one of the services use a MATLAB library compiled to run on MCR 8.2 64 bit version. Whenever the service is hit, it generates an exception as



System.TypeInitializationException: The type initializer for 'MathWorks.MATLAB.NET.Utility.MWMCR' threw an exception. 
System.TypeInitializationException: The type initializer for 'MathWorks.MATLAB.NET.Arrays.MWArray' threw an exception.
System.DllNotFoundException: Unable to load DLL 'mclmcrrt8_2.dll': The specified module could not be found.


For the sake of POC, we are manually installing the MCR on the docker container by initiating a powershell session and then then manually updating the Path environment variable. We can see in the installation logs that MCR has installed successfully and path variable has also been updated. But the error stills states that it was not able to locate 'mclmcrrt8_2.dll'.



Any ideas on how to get MCR running on docker windows container?





More answer...
poster 当前离线   回复时引用此帖