Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have developed application using Visual Studio 2005. Executable file is copied from development PC to another PC which do not have visual studio. I got message when i run exe file "This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem".

please tell me how to resolve the issue.


jaya
Posted

You may be missing dependencies (such as the mfc dll or other dlls)... to check what dependencies you are missing, you can use a tool such as DependencyWalker[^].

By the way, if you want MFC to be linked statically (so that there isn't a dependent dll), there are options to do so.
 
Share this answer
 
v3
Comments
Sergey Alexandrovich Kryukov 9-Jun-11 0:53am    
Good advice, a 5.
--SA
Albert Holguin 9-Jun-11 0:54am    
thanks, DependencyWalker saves the day again... lol
This is beacuse some of the MFC dlls are missing in your pc where you have not installed your VS.
to correct it
open your project in VS in your soruce machine
take project settings->General->
in drop down Microsoft foundation classes
select "Use MFC in a static dll"
and build the project again and try porting.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 9-Jun-11 0:54am    
Yes, a 5.
--SA
Usually some dependencies from Microsoft are missing, as the others have written.
But instead of linking your application new with static MFC you can also install the Redistributable Package for the VC 2005.
The file is called 'vcredist_x86.exe'.
Download it from Microsoft here.
This Package installs the MFC and other DLL's that are necessary to run your application on other computers than the developing machine.

The other way is to search all the DLL's needed by your application. Usually they are in the VC2005\VC\redist\x86 directory.
Put these DLL's to the same directory where your application is started from.
 
Share this answer
 
Comments
Sergey Chepurin 9-Jun-11 9:34am    
The answer deserves 5 and thank you for the link to Redistributable package.
All the answers are more than correct and all of them deserve a 5.

I'm only adding explanations on how to deploy applications made in VC8.0 and some concepts on dependencies in this link[^].

hope this helps. :thumbsup:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900