Ask a questionAsk a question
 

AnswerDeploying VC++.net 2005 application

  • Thursday, November 05, 2009 2:08 PMSwapnil Bopshetti Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Dear Friends,
    I have made 1 application in vc++/mfc in visual studio 2005,it is running successfully on my pc but when i try to run(.exe) it on a machine which doesn't have visual studio 2005 install (only have xp sp3) it will not run..and gives messagebox with message


    "This application has failed to start because the application configuration is incorrect.reinstalling the application may fix the problem"
    what i should do to run it on any machine having xp....

    Please give your valuable suggestion as early as possible...
    Thank You in advance...

Answers

All Replies

  • Thursday, November 05, 2009 4:16 PMthomas_woelfer Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    well how did you install it on the 2nd machine? incase you simply copied the .exe file, a lot of dlls referenced by the app will be missing. these include all of the vc++ runtime libraries. iow: you need to install the runtime libraries you are using that come with visual studio. e.g. there is a vc++ redistributable installer that comes with visual studio. incase you are using mfc/atl/c++, that one also needs to be deployed to the target machine.

    WM_HOPETHISHELPS
    -thomas woelfer
    http://www.die.de/blog
  • Friday, November 06, 2009 5:50 AMSwapnil Bopshetti Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks Thamas for your quick reply,

    from where i can download the runtime libraries for vc++..???

    Thank You once again..
  • Friday, November 06, 2009 7:46 AMEdwer FangMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hello,

    Here are the related links:
    Microsoft Visual C++ 2005 SP1 Redistributable Package (x86)

    Microsoft Visual C++ 2005 SP1 Redistributable Package (x64)

    In addition, usually we need to install both of .net framework and the Redistributable Package, you may verify that if you have installed .net framework unless your OS is vista or later, if not, you should install it on the target machine.

    By the way, as this forum is for the setup of .net framework, you could post your related issue on the related language IDE Forum so you can get better and quicker response.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
  • Friday, November 06, 2009 9:53 AMSwapnil Bopshetti Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thank you Edwer,
    But for tht it reqiurs only release mode...cant i use Debug mode???
     
  • Friday, November 06, 2009 10:14 AMEdwer FangMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    Do you mean the application is generated in debug mode and you are confused whether it could work on the target machine with the both prerequisites installed? If so, yes, the application could work on it.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.