Solved

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

Posted on 2009-05-17
10
4,976 Views
Last Modified: 2013-11-20
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
0
Comment
Question by:UdiRaz
  • 5
  • 3
  • 2
10 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 24406543
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
 

Author Comment

by:UdiRaz
ID: 24409291
I don't think this is the problem since other mfc projects are able to run in debug mode.
0
 
LVL 86

Expert Comment

by:jkr
ID: 24412173
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
ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 

Author Comment

by:UdiRaz
ID: 24420431
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
 
LVL 86

Expert Comment

by:jkr
ID: 24426655
If that is about mpr.dll, don't even bother - this message is explained in the FAQ. Any others reported as missing?
0
 

Author Comment

by:UdiRaz
ID: 24429067
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
 
LVL 8

Accepted Solution

by:
Subrat (C++ windows/Linux) earned 500 total points
ID: 24470182
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
 

Author Comment

by:UdiRaz
ID: 24471641
Well done. This solved the issue.
Thanks
0
 

Author Closing Comment

by:UdiRaz
ID: 31582332
Simple and effective. Well done.
0
 
LVL 8

Expert Comment

by:Subrat (C++ windows/Linux)
ID: 24471649
U r wel - come.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how do i create updater to My Activex application? 3 88
java ^ examples 8 65
unix example issues 18 90
Problem to App source 6 39
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question