Occasional ThrowSecurityException from Microsoft.Win32.RegistryKey.OpenSubKey

Add-in Express™ Support Service
That's what is more important than anything else

Occasional ThrowSecurityException from Microsoft.Win32.RegistryKey.OpenSubKey
 
Alexander de Man




Posts: 46
Joined: 2007-05-03
Hello,

Recently we started to get tickets from multiple organizations that some of their users are occasionally getting a ThrowSecurityException. According to the stack trace it happens in:
System.ThrowHelper.ThrowSecurityException(resource As ExceptionResource)
mscorlib.dll: N 0016 (0x10) IL
Microsoft.Win32.RegistryKey.OpenSubKey(name As String, writable As Boolean)
mscorlib.dll: N 0000 (0x0) IL
AddinExpress.Projects.Common.ADXRegistry.OpenKey(name As String, writable As Boolean)
mscorlib.dll: N 0192 (0xC0) IL

At the moment, we are unable to reproduce the issue our self and it's not fully clear in what situation it occurs. It doesn't seem to be related to a specific Office application since we have mentions of Excel/PowerPoint and Word.

Do you have any idea why registry access could fail sometimes and work minutes later?

Regards,
Alexander
Posted 26 Jan, 2022 05:40:15 Top
Andrei Smolin


Add-in Express team


Posts: 18183
Joined: 2006-05-11
Hello Alexander,

We've never got such reports. I suggest that you identify the scenario in which the issue occurs.

Regards from Poland (CET),

Andrei Smolin
Add-in Express Team Leader
Posted 26 Jan, 2022 06:00:25 Top
Alexander de Man




Posts: 46
Joined: 2007-05-03
Hello Andrei,

Thanks, I'll try to determine the reproduction steps.

Regards
Posted 26 Jan, 2022 08:35:21 Top