Click here to Skip to main content
15,886,693 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi,

I am facing an Application error as "The application failed to initialize properly (0xc0150002). Click on OK to terminate the application" while going to debug the code.

I am using Windows-XP with Visual Studio 2005. As per different suggestions by searching this on net, I install VC-redistributable and Service Pack 1. But the issue is not resolved.

Anybody know about this then please suggest.

Thank you in advance.
Posted
Comments
Mohibur Rashid 24-Feb-14 3:18am    
Hard to answer, is it MFC?
Sergey Alexandrovich Kryukov 24-Feb-14 3:21am    
How can it be not obvious: not enough information?
—SA
Sergey Alexandrovich Kryukov 24-Feb-14 3:24am    
And please stop posting fake "answers".
—SA
Vaibhav_J_Jaiswal 24-Feb-14 3:26am    
Yes I am using MFC for this. Whenever I am going to debug, before debugging OS send this message box.
Jochen Arndt 25-Feb-14 10:18am    
Looking up the error in ntstatus.h:

// MessageId: STATUS_SXS_CANT_GEN_ACTCTX
//
// MessageText:
//
// Windows was not able to process the application binding information.
// Please refer to your System Event Log for further information.
//
#define STATUS_SXS_CANT_GEN_ACTCTX ((NTSTATUS)0xC0150002L)

So you might have a look in the system event log.

1 solution

This issue is definitely a VC redistributable dll missing. To debug observe the process monitor logs for CreateFile and find out which dl it is trying to load and failed to, then install corresponding dll.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900