• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2888
  • Last Modified:

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

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
rbhargaw
Asked:
rbhargaw
  • 2
1 Solution
 
rbhargawAuthor Commented:
I am running "depends.exe" on the release version of exe  in my machine( where everything works fine)
0
 
rbhargawAuthor Commented:
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now