MATLAB: Do I get an error when deploying a MEX file created using MATLAB 7.7 (R2008b) to another 64-bit Windows machine

MATLAB

When I run the MEX command on a C source file using the Microsoft Visual C++ Studio 2008 on a 64-bit Windows Server 2008 and deploy to another 64-bit Windows machine without a Visual Studio, I receive the following error:
??? Invalid MEX-file 'F:\folderPath\myApplication.mexw64': The application has failed to start because its side-by-side configuration is incorrect.
Please see the application event log for more detail.
The analysis of the MEX-file in the Dependency Walker shows the following error message:
Error: The Side-by-Side configuration information for "c:\data\TIMESTWO.MEXW64" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).
Error: At least one required implicit or forwarded dependency was not found.
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

Best Answer

This issue is caused by missing Microsoft Visual Studio C++ 2008 redistributables on the deployment machine. The resolution is to install the MSVC 2008 redistributables. These redistributables for Microsoft Visual Studio C++ 2008 with installation instructions are available on the Microsoft website at the following links:
Microsoft Visual C++ 2008 Redistributable Package (x64)
Microsoft Visual C++ 2008 Redistributable Package (x86)
Microsoft Visual C++ 2008 SP1 Redistributable Package (x86)