.net - C# project 2010, standalone executable on other computer -


I have a C # project that I created in Visual Studio Express 2010. This program uses the third party C # class which calls a C ++ dll, that I have just copied filename.dll to bin / debug and bin / release folders in the project folder, and the application is running fine is.

I am under the assumption that I can make a copy of the release executable on this computer for other projects and run it till the fileename.dll is executable in the same directory. However, the correct framework is trying it on another installed computer, etc. The program crashes with System.dllnotfoundexception.

Strangely, my friend's report is that the program is installed with Visual Studio on my computer, but not without one, although I have not actually seen it.

What can be done with it? And how can I get the release executable to run on another machine?

Thanks for any answers! -Chis

If your C ++ DLL is created by Visual Studio, then it depends on CRT, Here are two things to check here:

  • If this release or debug depends on CRT, Microsoft does not give the debug version the right to distribute, except for the purposes of debugging, so this may be a problem .
  • The Witch version keeps it on
    • msvcp100.dll for C executable ( msvcp100.dll In the same directory as>)
    • The previous version required by the party to install - its assemblies were mandatory to run (some versions of VS 2005 have been set up as the framework , But need to be installed separately like VS 2005 SP1)

In any case, Mr. best way to debug problems that you are provided with problems on a computer and you know that DL is missing.


Comments