An invalid operation was attempted in a registry key marked for deletion - only in IE

I have a web application that throws the following error when launched in IE:

Attempted illegal operation with a registry key marked for deletion

It works fine in Chrome. Unfortunately, this is a production deployment, and I do not have access to more detailed error information.

I read some information related to this error message here

http://social.msdn.microsoft.com/Forums/en-US/90e22b43-e24f-44be-9345-ecbade0b32c9/urgent-comexception-illegal-operation-attempted-on-a-registry-key-that-has- was-markup for? offline = commserver2007

and here

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

Here is the Windows event log that matches what is described in these two links:

enter image description here

But it surprises me why this only happens when using IE. Any ideas?

+8
source share
3 answers

The error appears to be caused by an error or memory leak associated with COM +. Restarting the application pool or restarting IIS should fix the problem. Be warned that it may occur again due to blue, so consider restarting your scheduled application pool.

It is unlikely that the error is related to the browser. Perhaps the application works in Chrome due to caching. Or maybe the product has several servers, and Chrome hit a good server, and IE hit a bad server.

+4
source

If the same error came from my own javascript in IE and it was on the line where I called

window.localStorage 

The machine that activated it was installed by McAfee, but I'm not sure if it was active or not.

+1
source

FROM MSDN

https://blogs.msdn.microsoft.com/dsnotes/2016/03/01/com-intermittent-error-800703fa-illegal-operation-attempted-on-a-registry-key/

Reason :

The event warning explains that when the profile was unloaded, the w3wp.exe process had a registry key descriptor for the profile hive for the user.

According to article kb947238, event 1530 occurs because Windows automatically closes any registry descriptor for a user profile that remains an open application. This causes error 800703fa.

Resolution :

Go to IIS Manager, select the application pool for the web application and click "Advanced Settings", change the value "Download User Profile" to "true"

Setting these values ​​causes IIS to load the user profile to authenticate the application pool.

TEMP (NOT FROM MSDN) Restart the application pool or run the iisreset command.

0
source

Source: https://habr.com/ru/post/1200156/


All Articles