Solved

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

Posted on 2008-10-22
2
2,871 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now