locked
DLL Dependencies "This application has failed to start because the application configuration is incorrect...." RRS feed

  • Question

  • I have written a program on an XP development machine to run on a Windows Server 2003 machine.  The program ran on XP but not on Server 2003.  It gave message "This application has failed to start because the application configuration is incorrect...."

     

    I ran Dependency Walker and found that the following DLLs were missing:

     

    msvcr90.dll <- To be loaded at the start

    gdiplus.dll }

    msjava,dll } <- Delayed Load

    winhttp.dll }

     

    I installed the VC++ 2008 redistributable on the server and that has added the msvcr.dll and the program now runs.  However it is not running as expected and dependency walker still shows the 3 dll's as missing.

     

    Is there anyway to bundle these dlls with the program to remove the dependency?

     

    Also I downloaded and compiled this program.

    http://tangentsoft.net/wskfaq/examples/rawping.html

     

    This works perfectly on XP but not on Windows Server (giving the same error as the other program)

     

    Even with VC++ 2008 redistributable installed, dependency walker shows the following DLLs missing

     

    msvcp90d.dll <- To be loaded at the start

    msvcr90d.dll <- As above

    gdiplus.dll }

    msjava,dll } <- Delayed Load

    winhttp.dll }

     

    Please help!

     

     

     

    Wednesday, November 5, 2008 5:20 PM

Answers

  • DependencyWalker is not able to properly diagnose dependencies that are installed in the side-by-side cache.  Don't trust what it tells you.  Deploying the CRT libraries is the correct fix, as you found out. 

    Your second problem (rawping) is caused by installing the debug build of your program.  You must deploy the release build binaries, the redistributable package doesn't contain the debug version of the libraries.  And you are not allowed to deploy them yourself.
    Wednesday, November 5, 2008 5:46 PM
    Moderator