Solved

This application has failed to start because the application configuration is incorrect, VC++ 2005

Posted on 2008-10-22
2
2,882 Views
Last Modified: 2012-05-05
Hello,

I am migrating an application from VC++ 6.0 To VS 2005 .NET. It's an unmamaged, native C++ with MFC code.

The Application.exe works fine in my machine in both debug and release version and it depends on one dll.

Application.exe is developed by using "Use MFC in a Shared DLL" option in project settings
The dll is developed by using "Use Standard Windows Libraries"

When I put the Application.exe on Windows server 2003 , SP2 , I received the following error

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

This is What I have done till now

1. Installed vcredist_x86.exe on the box, but it didn't worked( I guess this works only in SP1).
2. Copied mfc80, msvcr80.dll, msvcp80.dll on the location where Application.exe is kept, it didn't worked
3.  I have tried using "Depends.exe" and run the profiler and their I am getting the below error.

----------------------------------------------------------------------------------------------------------------------
GetProcAddress(0x7C800000 [KERNEL32.DLL], "FlsAlloc") called from "COMMONUTIL.DLL" at address 0x100119A5 and returned NULL. Error: The specified procedure could not be found (127).
GetProcAddress(0x7C800000 [KERNEL32.DLL], "FlsGetValue") called from "COMMONUTIL.DLL" at address 0x100119B9 and returned NULL. Error: The specified procedure could not be found (127).
GetProcAddress(0x7C800000 [KERNEL32.DLL], "FlsSetValue") called from "COMMONUTIL.DLL" at address 0x100119CD and returned NULL. Error: The specified procedure could not be found (127).
GetProcAddress(0x7C800000 [KERNEL32.DLL], "FlsFree") called from "COMMONUTIL.DLL" at address 0x100119E1 and returned NULL. Error: The specified procedure could not be found (127).
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Can you one tell me where the issue could be? Is it problem with Application code or the library issues?

Thanks
Roop
0
Comment
Question by:rbhargaw
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 

Author Comment

by:rbhargaw
ID: 22780427
I am running "depends.exe" on the release version of exe  in my machine( where everything works fine)
0
 

Accepted Solution

by:
rbhargaw earned 0 total points
ID: 22787140
I am closing the question as the solution# 2 worked for me.

1. Install vcredist_x86.exe on  target compute. The Download files are present in http://www.microsoft.com/downloads/details.aspx?familyid=32BC1BEE-A3F9-4C13-9C99-220B62A191EE&displaylang=en (This works for Windows Server 2003 SP1)

2. Copy Visual C++ Redistributable Package (vcredist_x86.exe) from %PROGDIR%\Microsoft Visual Studio 8\SDK\v2.0\Bootstrapper\Packages\vcredist_x86\vcredist_x86.exe to the target computer(This works for Windows Server 2003, SP2)
0

Featured Post

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.

Question has a verified solution.

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

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

687 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