I have a project that I create on Windows 7 (32-bit) using Visual Studio 2005. The program works fine, and I can move it to another machine under Windows 7 and run it just fine. The problem occurs when I try to move it to a computer running Windows XP Pro. When I try to run the file, I get the following error:
"This application failed to start because the application configuration was incorrect. Re-installing the application may fix this problem."
When I open the event viewer, there are three system errors associated with this problem:
- The dependent assembly Microsoft.VC80.CRT was not found and the last error was The linked assembly was not installed on your system.
- Partial build failed for Microsoft.VC80.CRT. message Link error: link assembly not installed on your system.
- Failed to create activation context for [path to my exe]. Link error message :. Operation completed successfully
I tried installing the Visual C ++ 2005 Redistributable Package Service Pack 1 (SP1), which does not help.
If I create a project on a computer with XP, I can run it on another computer running XP (which does not have a C ++ distribution) and a computer running Windows 7.
Always build on XP is not a viable option, since I'm not the only person who will build it, and everyone else will use Win7.