Solved

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

Posted on 2008-10-22
2
2,880 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

740 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