error occurred at CreateSubKey in my installation.

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

error occurred at CreateSubKey in my installation.
 
jolly




Posts: 14
Joined: 2016-04-28
Hello.
I'm not good at english.
After I have installed, an error occurred in adxregistrator.log
I used CreateSubkey function in my source code.
Your help is very much appreciated.
Thanks.

[my source]
public void setSaveTime(string time)
{
using (RegistryKey key = Registry.CurrentUser.CreateSubKey("Software\\AppDataLow\\SafeConnect"))
{
if (key != null)
key.SetValue("SaveTime", time);
}
}

[error in adxregistrator.log]
Exception Source: AddinExpress.IE
Exception Type: System.ComponentModel.Win32Exception
Exception Message: Access denied.
Exception Target Site: CreateSubKey

---- Stack Trace ----
AddinExpress.Projects.Common.ADXRegistryKey.CreateSubKey(subKeyName As String)
AddinExpress.IE.dll: N 0132 (0x84) IL
AddinExpress.Projects.Common.Utilities.RegisterManagedType(rootKey As ADXRegistryKey, type As Type, strAsmName As String, strAsmVersion As String, strAsmCodeBase As String, strRuntimeVersion As String, targetHive As ADXTargetRegistryHive, createVersionKey As Boolean)
AddinExpress.IE.dll: N 0082 (0x52) IL
AddinExpress.Projects.Common.Utilities.RegisterType(t As Type, createVersionKey As Boolean, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
AddinExpress.IE.dll: N 0206 (0xCE) IL
AddinExpress.Projects.Common.Utilities.RegisterAssembly(assembly As Assembly, createVersionKey As Boolean, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
AddinExpress.IE.dll: N 0040 (0x28) IL
AddinExpress.Deployment.AddinDomainAdapter.RegisterForComInterop(register As Boolean, dllType As String, dllPath As String, showExceptions As Boolean)
AddinExpress.IE.dll: N 0205 (0xCD) IL
AddinExpress.Deployment.ADXRegistrator.RegisterAssembly(commandLine As String)
AddinExpress.IE.dll: N 0705 (0x2C1) IL
Posted 09 May, 2016 11:12:59 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Jolly,

Can you please send me the full text of the adxregistrator.log file?
Posted 11 May, 2016 08:54:06 Top
jolly




Posts: 14
Joined: 2016-04-28
Here is adxregistrator.log file.
thanks

Add-in Express Registrator Log File: 05/12/2016 09:51:08

Installation directory: C:\Program Files (x86)\AT solutions\Setup1\
Registrator version: 9.4.6126.0
Operating System: Microsoft Windows 10 Professional (build 10586), 64-bit
Process Owner: Administrator
Command Line: "C:\Program Files (x86)\AT solutions\Setup1\adxregistrator.exe" /install="MyIEAddon3.dll" /privileges=admin
Run 'As Administrator': No
Process Elevated: No
Integrity Level: Medium
UAC (User Account Control): On
--------------------------------------------------------------
09:51:08 0384 Starting the add-in registration process.
09:51:08 0384 Loading mscoree.dll
09:51:08 0384 Success.
09:51:08 0384 .NET Framework installation directory:
09:51:08 0384 The latest version of .NET Framework: 'v4.0.30319'
09:51:08 0384 Loading CLR: v4.0.30319.
09:51:08 0384 Calling CLRCreateInstance method.
09:51:08 0384 Success.
09:51:08 0384 Calling GetRuntime method.
09:51:08 0384 Success.
09:51:08 0384 Checking if the hosting API of .NET Framework v4.0 beta is installed.
09:51:08 0384 The hosting API is up to date.
09:51:08 0384 Calling GetInterface method for the CorRuntimeHost interface.
09:51:08 0384 Success.
09:51:08 0384 Starting CLR...
09:51:08 0384 Success.
09:51:08 0384 Getting the CLR version.
09:51:08 0384 The CLR v4.0.30319 has been initialized successfully.
09:51:08 0384 Creating a new domain setup.
09:51:08 0384 Success.
09:51:08 0384 Getting the add-in directory.
09:51:08 0384 Success. The directory is 'C:\Program Files (x86)\AT solutions\Setup1\'
09:51:08 0384 The 'shadow copy' is disabled.
09:51:08 0384 Creating a new application domain.
09:51:08 0384 Success.
09:51:08 0384 Getting the base directory for the domain.
09:51:08 0384 Success. The directory is 'C:\Program Files (x86)\AT solutions\Setup1\'.
09:51:08 0384 Searching for the Add-in Express core library.
09:51:08 0384 Success. The 'AddinExpress.IE.dll' file is found.
09:51:08 0384 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
09:51:08 0384 Assembly identity is 'AddinExpress.IE'.
09:51:08 0384 Success.
09:51:08 0384 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
09:51:08 0384 Success.
09:51:08 0384 Calling the managed registration procedure (DISPID = 1610743823).
09:51:08 0384 Managed Error:
Date and Time: 2016-05-12 am 9:51:08
Machine Name: DESKTOP-4FATVSE
IP Address: fe80::5124:5830:6fe9:c35a%8
Current User: DESKTOP-4FATVSE\

Application Domain: C:\Program Files (x86)\AT solutions\Setup1\
Assembly Codebase: file:///C:/WINDOWS/assembly/GAC_MSIL/AddinExpress.IE/9.4.6126.0__4416dd98f0861965/AddinExpress.IE.dll
Assembly Full Name: AddinExpress.IE, Version=9.4.6126.0, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 9.4.6126.0

Exception Source: AddinExpress.IE
Exception Type: System.ComponentModel.Win32Exception
Exception Message: access denied.
Exception Target Site: CreateSubKey

---- Stack Trace ----
AddinExpress.Projects.Common.ADXRegistryKey.CreateSubKey(subKeyName As String)
AddinExpress.IE.dll: N 0132 (0x84) IL
AddinExpress.Projects.Common.Utilities.RegisterManagedType(rootKey As ADXRegistryKey, type As Type, strAsmName As String, strAsmVersion As String, strAsmCodeBase As String, strRuntimeVersion As String, targetHive As ADXTargetRegistryHive, createVersionKey As Boolean)
AddinExpress.IE.dll: N 0082 (0x52) IL
AddinExpress.Projects.Common.Utilities.RegisterType(t As Type, createVersionKey As Boolean, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
AddinExpress.IE.dll: N 0206 (0xCE) IL
AddinExpress.Projects.Common.Utilities.RegisterAssembly(assembly As Assembly, createVersionKey As Boolean, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
AddinExpress.IE.dll: N 0040 (0x28) IL
AddinExpress.Deployment.AddinDomainAdapter.RegisterForComInterop(register As Boolean, dllType As String, dllPath As String, showExceptions As Boolean)
AddinExpress.IE.dll: N 0205 (0xCD) IL
AddinExpress.Deployment.ADXRegistrator.RegisterAssembly(commandLine As String)
AddinExpress.IE.dll: N 0705 (0x2C1) IL



09:51:08 0384 The add-in registration process is completed with HRESULT = -2147467259.
Posted 11 May, 2016 23:02:53 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Jolly,

The installation process is not elevated. Do you run setup.exe to install the add-on?
Posted 12 May, 2016 04:55:11 Top
jolly




Posts: 14
Joined: 2016-04-28
I didn't run setup.exe.
always thanks

Here is an another question.
When the mouse over the IHTMLInputElement
How do I create a C# form window just below the IHTMLInputElement location?
Posted 12 May, 2016 09:22:13 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Jolly,

You can get the position of the HTML element using the ADXIEHelper.GetHTMLElementPosition() method of the Add-in Express framework.
Posted 12 May, 2016 12:25:08 Top
jolly




Posts: 14
Joined: 2016-04-28
Thank you veeeeery much!
Posted 12 May, 2016 12:45:55 Top