This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).

When running the application in debug mode, it fails to start and displays the following error
"This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001)."
I've tried advices used in similar problem mentioned in other posts but it did not help.
Application runs fine on release. Problem seems to be related to importing functions from
a dll which uses atl, while the application does not.

Any idea?

Thanks
UdiRazAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Subrat (C++ windows/Linux)Connect With a Mentor Software EngineerCommented:
I think this may help u.
In VS2008,
project->properties
ConfigurationProperties->C/C++->Code generation->Runtime Library
change here to /MD  or /MT depending ur project.....

Thanks.
0
 
jkrCommented:
The debug runtime DLLs are probably missing on your target machine, which is absolutely normal - MS' license agreement does not allow these to be distributed, only the release versions can be.
0
 
UdiRazAuthor Commented:
I don't think this is the problem since other mfc projects are able to run in debug mode.
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
jkrCommented:
You can easily check that by opening your app with the Dependency Walker (www.dependencywalker.com) - does that tool report any DLLs as missing?
0
 
UdiRazAuthor Commented:
thanks, I've tried this tool before (after reading simliar posts) and it gives an error "Warning : At least one module has an unresolved import due to a missing export function in a delay - load dependent module".
My main application is using mfc but not using atl, and the dll uses both, although I've tried
changing this and it did not help. I'm exporting classes using dllexport, but there is a warning
regarding CString in header files.
0
 
jkrCommented:
If that is about mpr.dll, don't even bother - this message is explained in the FAQ. Any others reported as missing?
0
 
UdiRazAuthor Commented:
this is not regarding mpr dll. it is related to exporting functions from an MFC dll I'm creating.
The weird thing is that it works in release.
0
 
UdiRazAuthor Commented:
Well done. This solved the issue.
Thanks
0
 
UdiRazAuthor Commented:
Simple and effective. Well done.
0
 
Subrat (C++ windows/Linux)Software EngineerCommented:
U r wel - come.
0
All Courses

From novice to tech pro — start learning today.