How to resolve the error: "The application was unable to start correctly (0xc0150002). Click OK to close the application."


This error:

The application was unable to start correctly (0xc0150002). Click OK to close the application.

happens when you try to start an application compiled against RTI dotnet libraries in a system where the "Visual Studio® 2005 Service Pack 1 Redistributable Package MFC Security Update" is not installed.

The underlying cause is that the system is trying to find the "microsoft.VC80.CRT" file, provided in the mentioned Security Update. You can see the following error in the Application Log:

Activation context generation failed for "...\nddscd.dll". Dependent Assembly Microsoft.VC80.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="8.0.50608.0" could not be found. Please use sxstrace.exe for detailed diagnosis.

You must have the Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package MFC Security Update installed on the machine where you are running an application built with the release or debug libraries of the following RTI architecture packages:

  • i86Win32VS2005 and x64Win64VS2005, built with dynamic libraries
  • i86Win32jdk and x64Win64jdk
  • i86Win32dotnet2.0 and x64Win64dotnet2.0

The Microsoft Visual C++ 2005 Service Pack 1 Redistributable Package MFC Security Update can be obtained from the following Microsoft website:

  http://www.microsoft.com/download/en/details.aspx?id=26347

 

Platform: