Occasional registry access error

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

Occasional registry access error
 
Pino Carafa




Posts: 84
Joined: 2016-09-28
One of our customers is reporting this error. Can you have a look at this, perhaps you know what is causing it? It appears to be related to Add-in Express accessing the registry. Perhaps the user's registry access has been set too strict in some area?

Regards

Pino

******redacted******
Assembly Codebase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
Assembly Full Name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Assembly Version: 4.0.0.0

Exception Source: mscorlib
Exception Type: System.Security.SecurityException
Exception Message: Requested registry access is not allowed.
Exception Target Site: ThrowSecurityException

---- Stack Trace ----
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



(Outer Exception)
******redacted******
Assembly Full Name: AddinExpress.MSO.2005, Version=9.4.4644.0, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 9.4.4644.0

Exception Source: AddinExpress.MSO.2005
Exception Type: System.Exception
Exception Message: OpenKey failed.
Exception Target Site: OpenKey

---- Stack Trace ----
AddinExpress.Projects.Common.ADXRegistry.OpenKey(name As String, writable As Boolean)
AddinExpress.MSO.2005.DLL: N 0292 (0x124) IL
AddinExpress.MSO.ADXAddinModule.AddinExpress.MSO.IDTExtensibility2.OnStartupComplete(custom As Array&)
AddinExpress.MSO.2005.DLL: N 1434 (0x59A) IL
Posted 25 Feb, 2020 04:04:34 Top
Andrei Smolin


Add-in Express team


Posts: 17132
Joined: 2006-05-11
Hello Pino,

It looks like the add-in can't access these keys:
- HKCU\Software\Microsoft\Office\Addins\{your add-in}; the add-in may read/write here
- HKCU\Software\Microsoft\Office\{version}\Common; read access only.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 25 Feb, 2020 04:25:58 Top
Pino Carafa




Posts: 84
Joined: 2016-09-28
Thanks Andrei.... There is no good reason for access to those keys to be restricted so I will instruct our customer accordingly :)
Posted 25 Feb, 2020 04:28:24 Top
Andrei Smolin


Add-in Express team


Posts: 17132
Joined: 2006-05-11
You are welcome!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 25 Feb, 2020 06:16:18 Top