MATLAB: Do I get an error mentioning “ntstatus 0xc0150002” when deploying a driver application that calls a shared library created with the MATLAB Compiler 4.9 (R2008b) using a MSVC compiler

2008ideMATLAB Compiler

I am trying to deploy a driver application that calls a shared library on a machine that does not have MATLAB or the MSVC development environment installed but I get the following error:
Error: The Side-by-Side configuration information for "c:\Temp\test.dll" contains errors.
LDR: LdrpWalkImportDescriptor() failed to probe C:\Temp\test.dll for its manifest, ntstatus 0xc0150002
Unloaded "test.dll" at address 0x02EE0000.

Best Answer

Side-by-Side errors are usually caused by the MSVC Runtime Libraries being missing on the deployment machine. If you installed the MSVC Runtime Libraries, a possible cause for this error message is that you are distributing the debug version of your driver application.
The debug version of the MSVC Runtime Libraries is only included by the MSVC development environment. To work around this issue, make sure you distribute the "Release" version of your driver application and make sure that the MSVC Runtime Libraries are installed.