Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 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

16 Experts available now in Live!

Get 1:1 Help Now