none
URGENT: COMException: Illegal operation attempted on a registry key that has been marked for deletion

    Question

  • We had this error on our production server, can anyone help?

    Server Error in '/' Application.

    Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA)

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Runtime.InteropServices.COMException: Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA)

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [COMException (0x800703fa): Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA)]
    Microsoft.CommerceServer.Interop.Profiles.ProfileServiceClass.GetProfileByKey(String bstrKeyMemberName, Object sValue, String bstrType, Boolean bReturnError) +0
    Microsoft.CommerceServer.Runtime.Profiles.Profile..ctor(ProfileContext profileService, String keyName, String keyValue, String profileType) +74

    [CommerceProfileSystemException: Failed to retrieve profile.]
    Microsoft.CommerceServer.Runtime.Profiles.Profile..ctor(ProfileContext profileService, String keyName, String keyValue, String profileType) +301
    Microsoft.CommerceServer.Runtime.Profiles.ProfileContext.GetProfile(String keyName, String keyValue, String profileType) +324
    Microsoft.CommerceServer.Runtime.Profiles.UpmMembershipProvider.GetUser(String username, Boolean userIsOnline) +124
    EPiServer.Security.MultiplexingMembershipProvider.FindMembershipUser(String username) +111
    EPiServer.Security.MultiplexingMembershipProvider.get_CurrentMembershipUser() +77
    EPiServer.Security.MultiplexingMembershipProvider.get_CurrentProvider() +73
    EPiServer.Security.MultiplexingMembershipProvider.ValidateUser(String username, String password) +26
    System.Web.UI.WebControls.Login.AuthenticateUsingMembershipProvider(AuthenticateEventArgs e) +60
    System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +119
    System.Web.UI.WebControls.Login.AttemptLogin() +115
    System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +101
    System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
    System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) +111
    System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +176
    System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
    System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
    System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


    Version Information:  Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016
    <!-- [COMException]: Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA) at Microsoft.CommerceServer.Interop.Profiles.ProfileServiceClass.GetProfileByKey(String bstrKeyMemberName, Object sValue, String bstrType, Boolean bReturnError) at Microsoft.CommerceServer.Runtime.Profiles.Profile..ctor(ProfileContext profileService, String keyName, String keyValue, String profileType) [CommerceProfileSystemException]: Failed to retrieve profile. at Microsoft.CommerceServer.Runtime.Profiles.Profile..ctor(ProfileContext profileService, String keyName, String keyValue, String profileType) at Microsoft.CommerceServer.Runtime.Profiles.ProfileContext.GetProfile(String keyName, String keyValue, String profileType) at Microsoft.CommerceServer.Runtime.Profiles.UpmMembershipProvider.GetUser(String username, Boolean userIsOnline) at EPiServer.Security.MultiplexingMembershipProvider.FindMembershipUser(String username) at EPiServer.Security.MultiplexingMembershipProvider.get_CurrentMembershipUser() at EPiServer.Security.MultiplexingMembershipProvider.get_CurrentProvider() at EPiServer.Security.MultiplexingMembershipProvider.ValidateUser(String username, String password) at System.Web.UI.WebControls.Login.AuthenticateUsingMembershipProvider(AuthenticateEventArgs e) at System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) at System.Web.UI.WebControls.Login.AttemptLogin() at System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.user_login_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) -->
    Thursday, January 14, 2010 2:08 AM

Answers

All replies

  • Windows detected your registry file is still in use by other applications or services. The file will be unloaded now. The applications or services that hold your registry file may not function properly afterwards. 

     DETAIL -
     18 user registry handles leaked from \Registry\User\S-1-5-21-1891909699-3115051877-2722763762-1001:
    Process 3652 (\Device\HarddiskVolume2\Windows\System32\inetsrv\w3wp.exe) has opened key \REGISTRY\USER\S-1-5-21-1891909699-3115051877-2722763762-1001
    Process 3652 (\Device\HarddiskVolume2\Windows\System32\inetsrv\w3wp.exe) has opened key \REGISTRY\USER\S-1-5-21-1891909699-3115051877-2722763762-1001
    Process 3652 (\Device\HarddiskVolume2\Windows\System32\inetsrv\w3wp.exe) has opened key \REGISTRY\USER\S-1-5-21-1891909699-3115051877-2722763762-1001
    Process 3652 (\Device\HarddiskVolume2\Windows\System32\inetsrv\w3wp.exe) has opened key \REGISTRY\USER\S-1-5-21-1891909699-3115051877-2722763762-1001
    Process 3652 (\Device\HarddiskVolume2\Windows\System32\inetsrv\w3wp.exe) has opened key \REGISTRY\USER\S-1-5-21-1891909699-3115051877-2722763762-1001
    Process 3652 (\Device\HarddiskVolume2\Windows\System32\inetsrv\w3wp.exe) has opened key \REGISTRY\USER\S-1-5-21-1891909699-3115051877-2722763762-1001\Software\Microsoft\SystemCertificates\Root
    Process 3652 (\Device\HarddiskVolume2\Windows\System32\inetsrv\w3wp.exe) has opened key \REGISTRY\USER\S-1-5-21-1891909699-3115051877-2722763762-1001\Software\Microsoft\SystemCertificates\trust
    Process 3652 (\Device\HarddiskVolume2\Windows\System32\inetsrv\w3wp.exe) has opened key \REGISTRY\USER\S-1-5-21-1891909699-3115051877-2722763762-1001\Software\Policies
    Process 3652 (\Device\HarddiskVolume2\Windows\System32\inetsrv\w3wp.exe) has opened key \REGISTRY\USER\S-1-5-21-1891909699-3115051877-2722763762-1001\Software\Microsoft\SystemCertificates\SmartCardRoot
    Process 3652 (\Device\HarddiskVolume2\Windows\System32\inetsrv\w3wp.exe) has opened key \REGISTRY\USER\S-1-5-21-1891909699-3115051877-2722763762-1001\Software\Microsoft\SystemCertificates\Disallowed
    Process 3652 (\Device\HarddiskVolume2\Windows\System32\inetsrv\w3wp.exe) has opened key \REGISTRY\USER\S-1-5-21-1891909699-3115051877-2722763762-1001\Software\Microsoft\SystemCertificates\My
    Process 3652 (\Device\HarddiskVolume2\Windows\System32\inetsrv\w3wp.exe) has opened key \REGISTRY\USER\S-1-5-21-1891909699-3115051877-2722763762-1001\Software\Microsoft\SystemCertificates\CA
    Process 3652 (\Device\HarddiskVolume2\Windows\System32\inetsrv\w3wp.exe) has opened key \REGISTRY\USER\S-1-5-21-1891909699-3115051877-2722763762-1001\Software\Microsoft\Windows\CurrentVersion\Explorer
    Process 3652 (\Device\HarddiskVolume2\Windows\System32\inetsrv\w3wp.exe) has opened key \REGISTRY\USER\S-1-5-21-1891909699-3115051877-2722763762-1001\Software\Microsoft\SystemCertificates\TrustedPeople
    Process 3652 (\Device\HarddiskVolume2\Windows\System32\inetsrv\w3wp.exe) has opened key \REGISTRY\USER\S-1-5-21-1891909699-3115051877-2722763762-1001\Software\Microsoft\Windows NT\CurrentVersion
    Process 3652 (\Device\HarddiskVolume2\Windows\System32\inetsrv\w3wp.exe) has opened key \REGISTRY\USER\S-1-5-21-1891909699-3115051877-2722763762-1001\Software\Microsoft\Windows\CurrentVersion\Internet Settings
    Process 3652 (\Device\HarddiskVolume2\Windows\System32\inetsrv\w3wp.exe) has opened key \REGISTRY\USER\S-1-5-21-1891909699-3115051877-2722763762-1001\Software\Policies\Microsoft\SystemCertificates
    Process 3652 (\Device\HarddiskVolume2\Windows\System32\inetsrv\w3wp.exe) has opened key \REGISTRY\USER\S-1-5-21-1891909699-3115051877-2722763762-1001\Software
    Thursday, January 14, 2010 2:18 AM
  • Hi,

    Did you find out what the problem was? I have the same error on a machine running Windows 2008 R2 Server 64-bit and Commerce Server 2009. I had to restart the application pool to get my web up and running again.

     


    Brgds Jonas
    Wednesday, July 07, 2010 7:20 AM
  • sadly not yet, we scheduled a daily iisreset as of now
    Wednesday, July 07, 2010 8:04 AM
  • Ok, if I find any solutions I'll let you know.
    Brgds Jonas
    Wednesday, July 07, 2010 8:38 AM
  • I have the exact same problem. Resetting the app pool resolved the issue.
    Friday, July 16, 2010 3:54 PM
  • I think this is problem with windows 2008 (R2).  check below link for resolution.

    http://blogs.msdn.com/b/distributedservices/archive/2009/11/06/a-com-server-application-may-stop-working-on-windows-server-2008.aspx

    Regards,
    -Ravi Kanth Koppala


    http://techblog.ravikanth.net (If this post answers your question - Either Mark this post as the answer or vote as being useful.)
    Wednesday, July 21, 2010 7:05 AM
  • Looks it's the catch!

    Anyone can try out and report your findings?

    as mine is already in production, i'm a bit reluctant to turn off my daily iisreset.

    Wednesday, July 21, 2010 7:58 AM
  • Recycling the application pool solved it for me.
    Monday, January 27, 2014 6:40 PM