IIS ASP.NET VS2013 Profiler on Windows 8: Illegal operation attempted on a registry key that has been marked for deletion

Was trying to use the built in VS2013 profiler in IIS and it was hard to get working reliably on Windows 8, frequently throwing the exception “Illegal operation attempted on a registry key that has been marked for deletion” which stopped everything from working. Profiling became a one shot if lucky event but was basically unusable.

This post helped me.

By using the group policy editor and enabling “Do not forcefully unload the user registry at user logoff” everything now works as expected from the UI.

I also (unrelated to this error) I found I had to disable instrumentation of 32bit DLLs in the project to make it work smoothly.

Leave a Comment