I have a azure webjob which calls matlab generated dll. The webjob is working perfectly on local computer. However, when I try to publish it as webjob I got following error. I have added two dlls, onw of them is matlab function,called RDE.dll the other one is MWArray.dll. When I take a look at webjob references, i can see both dlls are loaded. I also checked that these dll are created under bin x64 folder.
How ever, there is a error stating that "Unable to load DLL 'mclmcrrt9_0.dll" whcih is probably a reference for MWArray.dll.
Here is the error. Any ideas would be perfect
Unhandled Exception: System.TypeInitializationException: The type initializer for 'Mathworks.RDE.RdeTool' threw an exception. ---> 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 'mclmcrrt9_0.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)