The application has failed to start because its side-by-side configuration is incorrect.


  • I'm using Windows 7 Professional and Visual Studio 2010 Professional.  I am a college student and trying to run an C++ application that my insturctor has put on the school's website that I am to write a program for. Ever time I run the application I get an error message "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." I have also downloaded and installed VS10-SP1 with no luck on my problem. Is there anything else that I need to do to make the application work right? Also any applications I write up using VS10 works just fine, but any I get from my school's website does not.
    Wednesday, October 05, 2011 3:44 AM


All replies

  • A program written in Visual Studio will be dependent on several DLLs that the program will need at runtime.

    There are several ways to distribute the dependent DLLs.

    You can create an installation that contains all the dependencies along with the program.

    Or the program itself can use the static library versions of the dependencies by statically linking with them.

    Another option would be to install the redistributable package from Microsoft that contains all the dependent DLLs that a program would ever need.

    In your case, since the program has already been written and published, you can go for the last option.

    Depending on whether you're using the 32-bit or 64-bit version of the OS and on the bitness of the program, you need to download and install from one of the links below - (32-bit) (64-bit)


    Microsoft MVP (Visual C++)

    Polymorphism in C
    Thursday, October 06, 2011 2:28 AM
  • Thanks for the info, but it did not help. I am running 64-bit windows 7 OS and using VS 2010 for my C++ class.  I can write programs and run the ones I have

    writen just fine, but I can not run the ones I get off my school's website.  I get an error message come up, "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."  The

    applications from the school's website work fine on the computers at school, just not on any of mine at home.  There are other students that are haviing the

    same problem too.  Any help would be great.


    John Bowen

    Student at CSCC


    Thursday, October 06, 2011 4:55 PM
  • Hi John,
    In my opinion, the problem may be caused  by that the application does not find the correct CRT or other DLL .
    Please try to use Dependency Walker to find out which DLL was not loaded . For more about Dependency Walker , please refer to , and you can download this tool from there.
    According to the result of  Dependency Walker , try to download corresponding files and install them . For example ,  if it shows that the C Runtime Library cannot be found , please download the appropriate and install it on your machine .
    Below are some links of CRT you can try :
    1-> for Visual Studio 2010(VS) on 64-bit operating system(OS) .
    2-> for VS 2010 on 32-bit OS.
    3-> for VS 2008 on 64-bit OS .
    4-> for VS 2008 on 32-bit OS , .
    5-> for VS 2005 on 64-bit OS .
    6-> for VS 2005 on 32-bit OS .
    After the installation , please try to run the C++ application again .
    Hope this helps .
    If you have any problem further , please let me know .
    Best regards ,


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, October 07, 2011 1:37 AM
  • Thanks for the info.  Dependency Walker is helpful and shows me 5 DLLs that are errors on opening file, message reads error opening file, the system cannot find the file specified.  This message is the same for MSVCM90D.DLL, MSVCP90D.DLL, MSVCR90D.DLL, GPSVC.DLL, and IESHIMS.DLL. I have also downloaded and installed, but the program still dose not run.

    Thanks again


    Friday, October 07, 2011 4:36 AM
  • The trailing 'D' is a hint that it is a debug runtime library that is missing, and 90 is a hint that it is a Visual C++ 2008 runtime library. There are no redistributable packages available for debug libraries. You can try to download and install Visual C++ 2008 Express which comes with the debug runtime libraries. GPSVC.DLL and IESHIMS.DLL may require further packages, though.

    I also suggest to advise your instructor to distribute release executables, if not a complete installer.



    Friday, October 07, 2011 5:12 PM
  • Thanks for the info.  I will have to talk to my instructor and find out if he is running Visual C++ 2008 or Visual C++ 2010. I know I am running Visual C++ 2010.



    Friday, October 07, 2011 11:44 PM
  • Now I know whey installing the redistributable package did not work for you.

    Firstly, the the debug version of the software is put on the website.

    Secondly, the code is built using VS 2008.

    So if you install VS2008 in your machine, it will work.

    Or tell you're instructor to host the release version of the software, which is what that needs to be done anyway.

    Microsoft MVP (Visual C++)

    Polymorphism in C
    Saturday, October 08, 2011 2:40 AM