Application Configuration is Incorrect

I am trying to run a program which is made in VC++ 2005 Express. I have installed the program on a different machine from the machine it was made on, and all of a sudden, it doesn't work anymore.

The program uses the following dll files: mscorlib, system, system.windows.forms, system.drawing.

system.dll was installed on the target computer with the .net environment, but I manually copied the other dll files into the system32 folder, but the app still doesn't work.

If someone has any ideas about what is going wrong, it would be greatly appreciated. Thanks.



Answer this question

Application Configuration is Incorrect

  • IMoL

    I have just installed the 90-day trial version of Visual Studio 2005 professional. After fixing some minor VC++ incompatibilities with my previous compiler (.NET 2003, I think), I was compiling and running the release version fine. I then needed to debug some code so I compiled the debug version. When I tried to run it, I was told it was out of date and I had to re-build it. (In fact I have to do this every time I run it, even though I have made no changes!!). But on running, I get the error message

    "This application has failed to start because MSVCIRTD.dll was not found. Re-installing the application may fix this problem"

    Obviously "re-installing the application" is not the solution. But from what you say, it appears I have a dependency on a dll that is not supported any more. I imagine I can change the prioject dependecies to use a different dll intended to replace this, perhaps changing some code as necessary, but I have no idea which one. I could possibly even copy across the dll from my old computer with its older compiler, but I would rather fix things to get up to date with current norms. Can you please explain what to do or make some other suggestion as to how I can work around this


  • SThorpe

    I am not compiling in debug, and the main dependancies are:

    -MSVCR80D

    -MSVCIRTD

    -Kernel32

    -MSVCM80D

    -MSCOREE

    Although these all depend on many other dll files, so I am not able to copy these manually. I have also found out the the machine I am trying to install my program on is lacking some XP Updates. Would any of these dll files have come with some more recent microsoft updates Thanks


  • Maxild

    Thanks for the link.

    I installed those files on the target machine and my application is still not working. It still will not run on the target machine. Still get the error about the application configuration is incorrect.


  • phb5000

    If you have a dependency on msvcr80d.dll then you are compiling debug - the release version of the C runtime is msvcr80.dll. Also msvcirtd.dll is a very old DLL and it is no longer supported by Visual C++ Express - if you have a dependency on this file then you must using headers files from an earlier version of Visual C++.

  • Drew P

    Is the vcredist_x86.exe file included in the VS C++ 2005 Express or do you know of a site where I could get this installer file Microsoft Downloads doesn't seem to have it.
  • gholam ali

    I'll try running depends.exe when I get back to my development machine this afternoon.

    Error message (and no, reinstalling doesn't fix the problem):

    :filepath:

    This application has failed to start because the application configuration is incorrect. Reinstalling this application may fix this problem.


  • pilot2242

    What is the exact error message you are getting You should also run depends.exe, <VS-2005-Install>\Common7\tools\bin, on your application to see exactly what it depends upon - be sure check that if you compile as debug you have the debug libraries installed on the target machine.

  • Gene B. 3

    Manually copying the .NET assemblies won't work: you need to ensure that .NET runtime is correctly installed on the target machine. If this is a C++ application the chances are that your application also has dependency on the C and C++ runtimes and these also need to be installed on the target machine.

    This topic contains a link that describes installing the C and C++ runtime on another machine.

    http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=398802&SiteID=1



  • mculo

  • Application Configuration is Incorrect