Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VS2005 VS2008 C++ VC++
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 23-Feb-14 22:15pm
Comments
Mohibur Rashid at 24-Feb-14 3:18am
   
Hard to answer, is it MFC?
Sergey Alexandrovich Kryukov at 24-Feb-14 3:21am
   
How can it be not obvious: not enough information?
—SA
Sergey Alexandrovich Kryukov at 24-Feb-14 3:24am
   
And please stop posting fake "answers".
—SA
Vaibhav_J_Jaiswal at 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 at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 434
1 Maciej Los 430
2 OriginalGriff 315
3 CHill60 240
4 Abhinav S 220
0 Sergey Alexandrovich Kryukov 10,102
1 OriginalGriff 9,495
2 Peter Leow 5,241
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 3,076


Advertise | Privacy | Mobile
Web04 | 2.8.150327.1 | Last Updated 25 Feb 2014
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100