I have the following app pool & website structure for different instances of a MVC web application whose design is being upgraded.
AppPool A running with Credential A
- Web App A V1 running with design version 1 **
- Web App A V2 running with design version 2 **
AppPool B - Also running with Credential A
- Web App B V2 running with design version 2 **
** These have different urls
Every once in a while , users of Web App A V2 get the error message below:
'Retrieving the COM class factory for component with CLSID {B2BCFF59-A757-4B0B-A1BC-EA69981DA69E} failed due to the following error: 800703fa Illegal operation attempted on a registry key that has been marked for deletion.'
Web App B V2 running with design version 2 does not get the error, neither does Web App A V1 running with design version 1
I have seen 2 potential causes for this message described, but they do not seem to match the pattern of what works and what doesn't :
Cause 1 in Visual Studio, using 32 bit dlls when 64 bit is required, or vice versa. If this were the problem, then I'd expect
Web App B V2 to also be failing.
Cause 2 in IIS, Admin person has logged in & then logged out with App Pool id. If this were the problem, then I'd expect all Web Apps ( A V1 , A V2 & B V2 ) to fail.
Does any one else have any ideas about what might be causing this issue?
Seems maybe a thread trying to add or update a registry key while some other thread marked the same key for deletion. Do you have a call stack to get an idea about the API that tries to do that ?
No actual smoking gun from these links, but I have decided to see if splitting the V1 & V2 of the apps into their own Application Pools to insulate them from each other stops the problem from recurring. Thanks for your help.
Member
11 Points
106 Posts
Illegal operation attempted on a registry key that has been marked for deletion
Jan 06, 2020 12:08 PM|Richard Scannell|LINK
I have the following app pool & website structure for different instances of a MVC web application whose design is being upgraded.
AppPool A running with Credential A
- Web App A V1 running with design version 1 **
- Web App A V2 running with design version 2 **
AppPool B - Also running with Credential A
- Web App B V2 running with design version 2 **
** These have different urls
Every once in a while , users of Web App A V2 get the error message below:
'Retrieving the COM class factory for component with CLSID {B2BCFF59-A757-4B0B-A1BC-EA69981DA69E} failed due to the following error: 800703fa Illegal operation attempted on a registry key that has been marked for deletion.'
Web App B V2 running with design version 2 does not get the error, neither does Web App A V1 running with design version 1
I have seen 2 potential causes for this message described, but they do not seem to match the pattern of what works and what doesn't :
Cause 1 in Visual Studio, using 32 bit dlls when 64 bit is required, or vice versa. If this were the problem, then I'd expect Web App B V2 to also be failing.
Cause 2 in IIS, Admin person has logged in & then logged out with App Pool id. If this were the problem, then I'd expect all Web Apps ( A V1 , A V2 & B V2 ) to fail.
Does any one else have any ideas about what might be causing this issue?
All-Star
48500 Points
18071 Posts
Re: Illegal operation attempted on a registry key that has been marked for deletion
Jan 06, 2020 01:28 PM|PatriceSc|LINK
Hi,
Seems maybe a thread trying to add or update a registry key while some other thread marked the same key for deletion. Do you have a call stack to get an idea about the API that tries to do that ?
At worst I would look at https://social.msdn.microsoft.com/Forums/windowsdesktop/en-us/96cd6e6f-bf14-4980-b890-15c1fa5cb57e/how-to-locate-clsid-in-registry to try to understand which component is involved.
Edit: you also have https://docs.microsoft.com/en-us/sysinternals/downloads/procmon that should allow to track registry access.
Member
11 Points
106 Posts
Re: Illegal operation attempted on a registry key that has been marked for deletion
Jan 06, 2020 01:47 PM|Richard Scannell|LINK
Thanks Patrice
I'll have a look at the two links you have sent
Regards Richard
Member
11 Points
106 Posts
Re: Illegal operation attempted on a registry key that has been marked for deletion
Jan 06, 2020 04:34 PM|Richard Scannell|LINK
Hi Patrice
No actual smoking gun from these links, but I have decided to see if splitting the V1 & V2 of the apps into their own Application Pools to insulate them from each other stops the problem from recurring. Thanks for your help.