Sign in to follow this  
Mona777

This application has failed to start because the application configuration is incorre

Recommended Posts

Mona777    122
Hey guys, I was wondering if I can get help from you talented people :O) I have imported a C++ program from my laptop onto my work computer and the release version works but the Debug version says: This application has failed to start because the application configuration is incorrect. Review the manifest file for possible errors. Etc. when I try to run it, although it does compile. I also got this linking warning in the log: LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library I looked at many sites and they said that it is the problem with the missing MSVCR80.dll in win32 folder. I found the MSVCR80.dll file in 4 different folders in the winSxS folder. I don’t want to completely mess up everything on my work computer by copying one instance of the file and pasting it in the win32 folder. I need to know that if I do this, I might face new problems. After reading my message on the MS forum, I was sent the following: MSVCRTD.lib is the import library for the MS VC++ Run Time Debug dll. This is a dll that comes with Visual Studio and is installed with it. It is not supposed to be redistributed. (And it is not named "MSVCR80.dll", so that file won't help you). You must install Visual Studio on any computer on which you run a VC++ debug build. So I found msvcrtd.dll in the folder C:\Program Files\Microsoft Visual Studio 8\VC\lib but I still have the same problem. Please help me out if you can. Many thanks

Share this post


Link to post
Share on other sites
Evil Steve    2017
You need to make a release build of your application. To do that, select "Release" from the drop list in Visual Studio (It's probably on "Debug" at the moment), and compile. Your EXE file ends up in the Release directory of your solution directory.

Note that you'll still need to have the Visual Studio redist package installed on the target machine (Linky).

Share this post


Link to post
Share on other sites
Mona777    122
Thank you very much Evil Steve, as always.
It runs in release mode and I have no problem there. From your message my guess is that I need vcredist_x86.exe for it to run in Debug mode. I downloaded it onto my desktop. What do I do with it now?

Share this post


Link to post
Share on other sites
Estor    127
Go to property page of your project for debug, and make sure that at linker->Manifest file, field Generate Manifest is set to "YES"

If that does not help copy "MSVCR80.dll" to directory where your executable is.

And last thing most hard-core solution... compare your release and debug setting at properties.

Hope that helps

Share this post


Link to post
Share on other sites
Evil Steve    2017
Quote:
Original post by Mona777
Thank you very much Evil Steve, as always.
It runs in release mode and I have no problem there. From your message my guess is that I need vcredist_x86.exe for it to run in Debug mode. I downloaded it onto my desktop. What do I do with it now?
To run a de bug build, you need to have Visual Studio installed. You'll only want to run a debug build on your development PC(s), and release on everything else.

The redist package is to allow Release mode applications to run on other PCs, not all PCs have the necessary DLLs installed to run them - if you haven't needed to do this on your work PC, it's probably because another application has already installed them for you.

Share this post


Link to post
Share on other sites
Mona777    122
Thank you both very much, sorry to trouble you again. I did everything such as linker->Manifest file, field Generate Manifest is set to "YES" but it didn't help. I need to keep developing this program so I need to run the debug mode on this PC.

So now I have vcredist_x86.exe on my desktop downloaded it from the link Steve sent. Is this the redist package? what can I do with it now? Where should I put it?

or do I need to put MSVCR80.dll somewhere ( what does it mean to put it in the directory where the executable is? I put it in both Debug and release folders but made no difference.


Share this post


Link to post
Share on other sites
Estor    127
Quote:
Original post by Mona777
Thank you both very much, sorry to trouble you again. I did everything such as linker->Manifest file, field Generate Manifest is set to "YES" but it didn't help. I need to keep developing this program so I need to run the debug mode on this PC.

So now I have vcredist_x86.exe on my desktop downloaded it from the link Steve sent. Is this the redist package? what can I do with it now? Where should I put it?


Just instal it

Quote:
Original post by Mona777
or do I need to put MSVCR80.dll somewhere ( what does it mean to put it in the directory where the executable is? I put it in both Debug and release folders but made no difference.

yep thats the directory what i was thinking off... too bad it did not work

found this mayby this will help

Share this post


Link to post
Share on other sites
Mona777    122
Thanks very much. I tried running the vcredist_x86.exe but need to get admin privileges so I'll talk to the IT guys and hopefully it'll all be good. Many thanks.

Share this post


Link to post
Share on other sites
Evil Steve    2017
Quote:
Original post by Mona777
Thank you both very much, sorry to trouble you again. I did everything such as linker->Manifest file, field Generate Manifest is set to "YES" but it didn't help. I need to keep developing this program so I need to run the debug mode on this PC.

So now I have vcredist_x86.exe on my desktop downloaded it from the link Steve sent. Is this the redist package? what can I do with it now? Where should I put it?

or do I need to put MSVCR80.dll somewhere ( what does it mean to put it in the directory where the executable is? I put it in both Debug and release folders but made no difference.
If you want to run a Debug app on a PC, you need to have the full Visual Studio IDE / compiler / etc installed. Do you have the same version of Visual Studio installed on that PC as the PC which compiled the EXE?

Share this post


Link to post
Share on other sites
Mona777    122
Thanks so much for your time. I don't know if the Visual Studio installed on my work PC is exactly the same as my laptop at home which compiled the EXE. I know they're both VS 2005. I will check it out tonight and write back. The work one is visual studio 2005 standard edition and funny enough my laptop may have the professional edition.

Maybe it would help if I copy and paste all that I have in the winSxS folder on my laptop onto the PC at work.

Share this post


Link to post
Share on other sites
Evil Steve    2017
Quote:
Original post by Mona777
Thanks so much for your time. I don't know if the Visual Studio installed on my work PC is exactly the same as my laptop at home which compiled the EXE. I know they're both VS 2005. I will check it out tonight and write back. The work one is visual studio 2005 standard edition and funny enough my laptop may have the professional edition.

Maybe it would help if I copy and paste all that I have in the winSxS folder on my laptop onto the PC at work.
Ah, I see. Is there a reason you can't just compile the code on your work PC? I wouldn't be too surprised if the version of the debug DLLs was different between professional and express editions.

I wouldn't try messing with the winsxs folder, that could break things quite spectacularly [smile]

Personally, I do a lot of development on multiple machines. I have VS2008 pro installed on my laptop which I use at home, and VS2005 Express at work. I compile the code on both machines, and just run the EXE's that they produce, rather than trying to share the EXE file between work and home.

Share this post


Link to post
Share on other sites
Mona777    122
I'll do what you do then Steve and won't mix them up and won't mess with the winSxS. Thanks so much for your time. I've learnt so much from you. Cheers :O)

Share this post


Link to post
Share on other sites
Mona777    122
Ah, because I need to modify it and add another program to it and will need to debug it at some point so don't want to have problems later on.

Share this post


Link to post
Share on other sites
Estor    127
Quote:
Original post by Mona777
Ah, because I need to modify it and add another program to it and will need to debug it at some point so don't want to have problems later on.

Ookkk... in this case having some studio instaled on target machine ( in this case at work ) will be esential for debuging, having just debug version of file will not let you debug it.

Quote:
Original post by Mona777
So I found msvcrtd.dll in the folder C:\Program Files\Microsoft Visual Studio 8\VC\lib but I still have the same problem.

Was it at work machine? If so, then you have or at least had VC2008 there, trie to dig in Program Files\Microsoft Visual Studio 8\Common7\IDE and find devenv.com
or just run it from command line by typing devenv at "Start Menu -> Run"

Of curse if there are no visible icons on desktop or start menu [grin]

Share this post


Link to post
Share on other sites
Estor    127
Quote:
Original post by Mona777
ok :O), I found devenv.com shall I double click on it? What am I doing this for? has it to do with environment variables etc?


Yep.. db-click this should run IDE

Share this post


Link to post
Share on other sites
Estor    127
now you have your "play ground" dont you :D
Just bring from home your source code with all project/solution files and you can easy build/test/run etc. your code at work machine i think that will solve all your problems with manifest and future problems with modyfing your source.

Share this post


Link to post
Share on other sites
Mona777    122
Hey Estor Thank you, I have the source code with all project/solution files from home. I opened them in the new IDE but as before the release mode works and runs and the debug mode compiles but doesn't run :O(((((( giving me: This application has failed to start because the application configuration is incorrect.
Ahhh god damn....

Share this post


Link to post
Share on other sites
Estor    127
Quote:
Original post by Mona777
Hey Estor Thank you, I have the source code with all project/solution files from home. I opened them in the new IDE but as before the release mode works and runs and the debug mode compiles but doesn't run :O(((((( giving me: This application has failed to start because the application configuration is incorrect.
Ahhh god damn....


[dead] Did you trie to clean project and rebuild it? Know that sound silly but sometimes it help, till then will trie to find some other idea....
To be honest did not expect taht this will fail again :(

Share this post


Link to post
Share on other sites
Estor    127
Quote:
Original post by Mona777
I cleaned and rebuilt the project but nothing :O(
you've been so helpful. Thank you


Last idea i have at this moment, if project is not too big, make new solution at work, add 1 file with main/winmain, compile it and run, if it will work on both ( release and debug ), just move files to this new solution.

Quote:
Original post by Mona777
PS. you have to write the word as try not trie :O)

Thanks will try to remeber :D

Share this post


Link to post
Share on other sites
Mona777    122
cool :O) I'll definitely do that. I think that should work for sure. Thanks so much for your help. Will let you know once I do the file transferring thing and the results.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this