MATLAB: Is the compiled application halting during operation

applicationcompilefileinvalidMATLAB Compilermex

I have recently upgraded to windows 10. I am trying to compile an application and during compilation, I receive a warning message:
Invalid MEX-File
The specified module could not be found.
However, the application successfully compiles.
When I run the application, it halts during operation and I am not sure why.

Best Answer

A dependency of the compiled application was a .mexw64 file. This file was not being found when running the compiled application.
The original file was compiled in an earlier version of MATLAB. When trying to compile a new application in a different version of MATLAB, the original file cannot be read.
To resolve this issue, the same version of MATLAB must be used for compiling both the application and MEX file.