The problem is that your C ++ DLL requires the CRT libraries to be installed to work. The bold part of the error message gives you a hint:
Unable to load DLL "dllTest.dll": The application could not be started because its side-by-side configuration is incorrect. . See the application event log or use the sxstrace.exe command line command for more details.
This explains why everything is fine on your development machine - they are already installed there, because they are installed with your development tools and mdash, and why it does not work on a production server that does not have common CRT distributions installed.
You need to download the appropriate redistributable package for the version of Visual Studio with which you compiled the DLL. For example, if you are using Visual Studio 2010, you can download version 10 of the distributed CRT here .
Alternatively, you can compile a DLL with statically linked runtime libraries. To do this, change the project properties to reset /MT instead of /MD - (it is found in the user interface under "Configuration Properties" β "C / C ++" β "Code Generation" β "Runtime Library").
Cody gray
source share