Unable to load DLL 'mclmcrrt9_0.dll'

The full error is:
A first chance exception of type 'System.DllNotFoundException' occurred in MWArray.dll
Additional information: Unable to load DLL 'mclmcrrt9_0.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
I recently migrated to 2014b x64 from 2014b x86 and this is the first time running in 64 bit. I complied the DLL in the MATLAB Compiler GUI which is used by my VB.net app. The VB.net app compiles without warnings.
I only have one version of matlab installed (2014b x64) and today I also installed the MCR v8.4 to try in vein to solve this problem:
I don't have 'mclmcrrt9_0.dll' anywhere on my machine. I do have "mclmcrrt8_4.dll" located in the directory "C:\Program Files\MATLAB\MATLAB Compiler Runtime\v84\runtime\win64".
What gives?

Answers (1)

ammar mohamed
ammar mohamed on 21 Jun 2017
are you solve this problem because i have the same problem

3 Comments

Yes i was able to solve it, but i don't remember the solution very clearly. First, i would make sure that the path containing the MWArray.dll you are targeting is before all others in system>environment variables>path (if you have multiple MATLABs/MCRs installed).
Then make sure your project is targeting the correct MWArray.dll version. In my case my project was targeting the wrong version and i was receiving a message like this: Consider app.config remapping of assembly "MWArray, Culture=neutral, PublicKeyToken=e1d84a0da19db86f" from Version "2.14.1.0" [C:\Windows\assembly\GAC_MSIL\MWArray\2.14.1.0__e1d84a0da19db86f\MWArray.dll] to Version "2.15.1.0" [C:\Windows\assembly\GAC_MSIL\MWArray\2.15.1.0__e1d84a0da19db86f\MWArray.dll] to solve conflict and get rid of warning.
I removed this line from app.config and it fixed the problem if i remember correctly: oldVersion="2.14.1.0" newVersion="2.15.1.0"/
I had the same issue. 2 runtimes versions was installed on my computer. Just go to variable environment (remove the old ones in both PATH environment variables (user local variables and system variables) on Windows, restart prompt to make sure it takes the new settings)
Thank you very much.
I removed this line from app.config and it fixed the problem if i remember correctly: oldVersion="2.14.1.0" newVersion="2.15.1.0"/
This fixed my problem!!

Sign in to comment.

Categories

Products

Asked:

rob
on 10 Oct 2016

Commented:

on 22 Nov 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!