0

I am doing a project which is creating a native DLL. If I run the DLL file it works well in my machine. If I use the same DLL in some other machines it gives a error file. The error is:

The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail

So I need to open the application event and check the error log. The Error log says:

Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.

halfer
  • 19,824
  • 17
  • 99
  • 186
Ahamed Nafeel
  • 49
  • 3
  • 13

1 Answers1

0

Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis.

The information you need can be found here. Your DLL links against the debug C++ runtime. The debug runtime cannot be re-distributed. In order to install the debug runtime you must install the compiler. But that's the wrong solution to your problem. The right solution is to link against the release runtime. Compile your DLL as a release build, and distribute that. You will, of course, need to ensure that the Visual Studio 2008 C++ runtime is installed on the target machine.

David Heffernan
  • 601,492
  • 42
  • 1,072
  • 1,490
  • thanks dude.. I will change it to release build and the target machine contain VS2008 C++ redistributable. Still Now I got the same error.. What should I do?? – Ahamed Nafeel Jun 05 '15 at 01:59