none
this application has failed to start because the application configuration is incorrect. reinstall

    Question

  •  Hi,


    I am using visual C++ express edition. I can open .exe file with my PC, and then I send .exe file to other PC to open. But they can get error msg as below:

     

    "this application has failed to start because the application configuration is incorrect. reinstalling this application may fix problem."

     

    I really not sure what error is

    Thanks in advance

     

    Friday, October 28, 2011 2:14 AM

Answers

  • Hi,
     
    Thank you for your post.

    In my opinion the problem is caused by simple sending of .exe file.
    The C run-time (CRT) libraries are composed of various .lib files which contain the C run-time library functions. Different versions of VS have different versions of CRT. Different CRTs are different when used.
     
    Generally, we have two ways to link the CRT library: static link and dynamic link. For more information, please reference http://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx .
     
    Therefore, there are two solutions to this issue:
    1: Using /MT. Follow the step to change runtime library: Project Properties->Configuration Properties->Code Generation->Runtime Library. And then Build->Build solution. And then rebuild the solution and send the executable to other PC.
    2: Using /MD. Please try to install CRT of Visual Studio on the target machine.
     
    Remember to choose vcredist_x86 or vcredist_x64 of the best suitable and latest version according to which platform the application target for, then download and install it.
     
    For Microsoft Visual C++ 2010 SP1 Redistributable Package (x64), I recommend the follow download link: http://www.microsoft.com/download/en/details.aspx?id=13523 .
    For Microsoft Visual C++ 2010 SP1 Redistributable Package (x86), I recommend this one: http://www.microsoft.com/download/en/details.aspx?id=8328.

    If you have any other concerns, please feel free to let me know.
    Best regards,

     


    Helen Zhao[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.

    • Proposed as answer by Helen Zhao Thursday, November 3, 2011 5:36 AM
    • Unproposed as answer by Helen Zhao Thursday, November 3, 2011 5:37 AM
    • Marked as answer by Helen Zhao Tuesday, November 8, 2011 5:03 AM
    Wednesday, November 2, 2011 3:49 AM
  • Hi Pavel,
     
    Microsoft Download Center is available to everyone through the Internet. You can get almost all versions of Visual C++ Redistributable Package. Or you can download the lasted versions from Microsoft Support: http://support.microsoft.com/kb/2019667.
     
    I hope this information is helpful to you.
    Best regards,


    Helen Zhao[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.

    • Proposed as answer by Pavel A Thursday, November 3, 2011 7:26 PM
    • Marked as answer by Helen Zhao Tuesday, November 8, 2011 5:03 AM
    Thursday, November 3, 2011 8:03 AM

All replies

  • If you want find the list of files requires for run your application, you can check with http://www.dependencywalker.com/ application.

     

    You can add dependency files based on result( Debug or release version, etc). You can also check the following post for get more details

    http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/thread/36971526-95f3-4a9f-a601-1843c86332c1/


    Thanks and Regards Selvam http://www15.brinkster.com/selvamselvam/
    • Edited by Selvam Friday, October 28, 2011 5:53 AM
    Friday, October 28, 2011 5:51 AM
  • This error message is usually the result of assembly dependency issues.

    The easiest way to check if that is the case is to use the Event Viewer MMC plugin. Given that Microsoft have moved the control panel and administrative tools around on every bloody release since XP at least, the easiest way to open the Event Viewer is to go Start > Run > mmc.exe

    And then add the Event Viewer plugin from Add/Remove Snap-ins on the File menu. On XP, the System Event Log, and on Vista and Windows 7 the Application event log, will have any diagnostic messages generated by the windows loader when it encounters assembly errors. and they are usually quite descriptive.

    KB948854 answers this exact issue.

    I don't frankly know why the KB isnt searched along with forum articles to fill in the "Related Topics"

     

     

     

     

     

     


    • Edited by Chris Becke Friday, October 28, 2011 12:53 PM
    Friday, October 28, 2011 12:48 PM
  • Hi,
     
    Thank you for your post.

    In my opinion the problem is caused by simple sending of .exe file.
    The C run-time (CRT) libraries are composed of various .lib files which contain the C run-time library functions. Different versions of VS have different versions of CRT. Different CRTs are different when used.
     
    Generally, we have two ways to link the CRT library: static link and dynamic link. For more information, please reference http://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx .
     
    Therefore, there are two solutions to this issue:
    1: Using /MT. Follow the step to change runtime library: Project Properties->Configuration Properties->Code Generation->Runtime Library. And then Build->Build solution. And then rebuild the solution and send the executable to other PC.
    2: Using /MD. Please try to install CRT of Visual Studio on the target machine.
     
    Remember to choose vcredist_x86 or vcredist_x64 of the best suitable and latest version according to which platform the application target for, then download and install it.
     
    For Microsoft Visual C++ 2010 SP1 Redistributable Package (x64), I recommend the follow download link: http://www.microsoft.com/download/en/details.aspx?id=13523 .
    For Microsoft Visual C++ 2010 SP1 Redistributable Package (x86), I recommend this one: http://www.microsoft.com/download/en/details.aspx?id=8328.

    If you have any other concerns, please feel free to let me know.
    Best regards,

     


    Helen Zhao[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.

    • Proposed as answer by Helen Zhao Thursday, November 3, 2011 5:36 AM
    • Unproposed as answer by Helen Zhao Thursday, November 3, 2011 5:37 AM
    • Marked as answer by Helen Zhao Tuesday, November 8, 2011 5:03 AM
    Wednesday, November 2, 2011 3:49 AM
  • Is it possible that VC++ support team publishes a list of VC++ runtime downloads for all VC++ versions, on one page, easily understandable for end users? Newest releases first. And the URL must be permanent.

    Thanks,

    -- pa

     


    • Edited by Pavel A Wednesday, November 2, 2011 11:21 PM
    Wednesday, November 2, 2011 11:21 PM
  • Hi Pavel,
     
    Microsoft Download Center is available to everyone through the Internet. You can get almost all versions of Visual C++ Redistributable Package. Or you can download the lasted versions from Microsoft Support: http://support.microsoft.com/kb/2019667.
     
    I hope this information is helpful to you.
    Best regards,


    Helen Zhao[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.

    • Proposed as answer by Pavel A Thursday, November 3, 2011 7:26 PM
    • Marked as answer by Helen Zhao Tuesday, November 8, 2011 5:03 AM
    Thursday, November 3, 2011 8:03 AM