Click here to Skip to main content
13,295,953 members (53,370 online)
Rate this:
Please Sign up or sign in to vote.
See more:
The debug-win32 configurations of my ATL exe application getting crashed by "Debug asertion failed". The same ATL exe project of release configuration working fine.While debugging the HRESULT object returned as error"0x80004015 The class is configured to run as a security id different from the caller".But in release configuration also the same result returned,but it works fine. The working environment is Windows Server 2008 64 bit OS and Visual Studio 2008 solution. Any idea regarding this?
Posted 16-Nov-11 3:46am
JS 2008623
Updated 16-Nov-11 3:51am
Albert Holguin 17-Jan-12 11:28am
FYI... Some assert() functions are setup to only trigger during debug execution, not during release execution, since they are meant for developers and not for the users. So even though you don't get an explicit problem statement in the release executable, the problem may still be there.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

The solution for my problem was to disable the DEP in windows for my program.

I hope this helps.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


I've the same issue. And I think that the reason is a change in the registry settings. If I install an old version of our product it works. Even if I build the latest version. But when I deinstall and install the lastest version of our product the the same option doesn't work.

I'm currently looking for the differences in the setup, but haven't found it yet.

Did you solve your issue?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

When running in the Debugger, your application inherits the security settings for the Dev Studio environment. When running standalone, it gets the security settings of the user, or those specified at startup.

Set Dev Studio to 'Run as Administrator' and see if this changes things.
JS 2008 16-Nov-11 23:40pm
Thanks JackDingler for the solution.
Eventhough I have Set Dev Studio as 'Run as Administrator' also the error happend.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.171207.1 | Last Updated 17 Jan 2012
Copyright © CodeProject, 1999-2017
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