Thursday, June 28, 2007

Application configuration is incorrect - Redistributable Package issue

Well, I managed to break the build indirectly today. The build compiled fine, but when we ran any of our C++ applications, we got this error dialog:



Error message:
This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.

The problem:
I broke the build by applying Visual Studio service pack 1 to the build machine. As you can see above, the error message we received was clear as mud. With a little bit of hunting, I discovered that changes were made to the C++ redistributable, which show up in the manifest file. As you can see here, the version number in the application intermediate manifest file is 8.0.50727.762 (it was 8.0.50608.0 prior to applying the service pack):


The fix:
Applying the new redistributable to the target machine fixed our problem. You can download the Microsoft Visual C++ 2005 SP1 Redistributable Package (x86) Version 8.0.50727.762 here.


Reference:

4 comments:

Anonymous said...

Thank you for this. I've been struggling to solve this issue for 4 days. I've copied CRT dll etc and nothing has worked. I just about gave up, when I found your article. Thanks again.

FYI, I only got this error when I added an app.config file to my C++ project.

Anonymous said...

I just got done installing it, but it didn't seem to help any I'm still getting the error. If I have to reboot I am SOL because this is a server. I can't Reboot

Anonymous said...

Good dispatch and this fill someone in on helped me alot in my college assignement. Say thank you you for your information.

Anonymous said...

Nice post and this post helped me alot in my college assignement. Gratefulness you seeking your information.