Exception occurred during plugin installation

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

Exception occurred during plugin installation
 
ravinukala




Posts: 103
Joined: 2012-10-05
Hi Support,

Am developed IE plugin with help of Add-in Express.

Issue:
During installation on Windows 7 64x os, it throw an error in adxregistrator.log, but in windows installer it shown install successfully.

13:57:56 0700 Registering the 'objectspy.dll' assembly (administrator).
13:57:59 0212 Managed Error:
(Inner Exception)
Date and Time: 12/23/2013 1:57:59 PM
Machine Name: PU-SDSKUMA1
IP Address: fe80::c9e0:7c93:c358:a260%13
Current User: ZS\skumar4

Application Domain: C:\Program Files (x86)\Qualitia\Qualitia_ObjectSpy\ObjectSpy\
Assembly Codebase: file:///C:/Program Files (x86)/Qualitia/Qualitia_ObjectSpy/ObjectSpy/AddinExpress.IE.DLL
Assembly Full Name: AddinExpress.IE, Version=8.3.5068.0, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 8.3.5068.0

Exception Source: AddinExpress.IE
Exception Type: System.ComponentModel.Win32Exception
Exception Message: Access is denied
Exception Target Site: OpenSubKey

---- Stack Trace ----
AddinExpress.Projects.Common.ADXRegistryKey.OpenSubKey(subKeyName As String, writable As Boolean)
AddinExpress.IE.DLL: N 0134 (0x86) IL
AddinExpress.IE.ADXIEModule.RegisterBarItem(root As ADXRegistryKey, buttonRoot As ADXRegistryKey, hklm As ADXRegistryKey, hkcu As ADXRegistryKey, item As ADXIEBarItem, t As Type, moduleTypeName As String, admin As Boolean, x86Process As Boolean)
AddinExpress.IE.DLL: N 0900 (0x384) IL
AddinExpress.IE.ADXIEModule.RegisterIEModuleInternal(t As Type)
AddinExpress.IE.DLL: N 0483 (0x1E3) IL
ObjectSpy.IEModule.RegisterIEModule(t As Type)
AddinExpress.IE.DLL: N 0000 (0x0) IL



(Outer Exception)
Date and Time: 12/23/2013 1:57:59 PM
Machine Name: PU-SDSKUMA1
IP Address: fe80::c9e0:7c93:c358:a260%13
Current User: ZS\skumar4

Application Domain: C:\Program Files (x86)\Qualitia\Qualitia_ObjectSpy\ObjectSpy\
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.Reflection.TargetInvocationException
Exception Message: Exception has been thrown by the target of an invocation.
Exception Target Site: _InvokeMethodFast

---- Stack Trace ----
System.RuntimeMethodHandle._InvokeMethodFast(method As IRuntimeMethodInfo, target As Object, arguments As Object[], sig As SignatureStruct&, methodAttributes As MethodAttributes, typeOwner As RuntimeType)
mscorlib.dll: N 00000 (0x0) JIT
System.RuntimeMethodHandle.InvokeMethodFast(method As IRuntimeMethodInfo, target As Object, arguments As Object[], sig As Signature, methodAttributes As MethodAttributes, typeOwner As RuntimeType)
mscorlib.dll: N 0007 (0x7) IL
System.Reflection.RuntimeMethodInfo.Invoke(obj As Object, invokeAttr As BindingFlags, binder As Binder, parameters As Object[], culture As CultureInfo, skipVisibilityChecks As Boolean)
mscorlib.dll: N 0167 (0xA7) IL
System.Reflection.RuntimeMethodInfo.Invoke(obj As Object, invokeAttr As BindingFlags, binder As Binder, parameters As Object[], culture As CultureInfo)
mscorlib.dll: N 0000 (0x0) IL
AddinExpress.Projects.Common.Utilities.CallUserDefinedRegistrationMethod(rootKey As ADXRegistryKey, type As Type, bRegister As Boolean, targetHive As ADXTargetRegistryHive)
mscorlib.dll: N 0332 (0x14C) IL
AddinExpress.Projects.Common.Utilities.RegisterType(t As Type, createVersionKey As Boolean, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
mscorlib.dll: N 0227 (0xE3) IL
AddinExpress.Projects.Common.Utilities.RegisterAssembly(assembly As Assembly, createVersionKey As Boolean, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
mscorlib.dll: N 0040 (0x28) IL
AddinExpress.Deployment.AddinDomainAdapter.RegisterForComInterop(register As Boolean, dllType As String, dllPath As String, showExceptions As Boolean, logFullPath As String)
mscorlib.dll: N 0245 (0xF5) IL
AddinExpress.Deployment.ADXRegistrator.RegisterAssembly(commandLine As String)
mscorlib.dll: N 0437 (0x1B5) IL



13:57:59 0212 The add-in registration process is completed with HRESULT = -2147467259.

Posted 23 Dec, 2013 05:35:23 Top
Andrei Smolin


Add-in Express team


Posts: 14720
Joined: 2006-05-11
Hello,

Could you please send the complete adxregistrator.log to the support email address? Please make sure your email contains a link to this topic.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 23 Dec, 2013 06:32:26 Top
Andrei Smolin


Add-in Express team


Posts: 14720
Joined: 2006-05-11
Ravi,

Thank you for sending us the log. I have the same configuration with the only difference: I have UAC turned on. To check if this influences the issue, I've turned it off, restarted windows, and installed a sample add-in; I didn't reproduce the issue. I suppose this means that you have some problems on your PC. Could you set UAC to its default level, restart Windows and check if the issue is reproducible? Did you modified group policies on your machine?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 23 Dec, 2013 08:38:47 Top
ravinukala




Posts: 103
Joined: 2012-10-05
Andrei,

It is the same issue before doing UAC set as default level.
And it has occurred on client's environment.
Posted 24 Dec, 2013 03:15:15 Top
Andrei Smolin


Add-in Express team


Posts: 14720
Joined: 2006-05-11
Ravi,

Could you please try to create and then delete a custom subkey in this registry key using the account of the user who runs the installer:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Ext\Settings

Also, please create a Windows Installer log and sent it to me:
msiexec /i {path}/{installer file}.msi /lv mylog.log

The command line above must be run from an elevated Command Prompt,

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 24 Dec, 2013 05:55:25 Top
ravinukala




Posts: 103
Joined: 2012-10-05
Andrei,

I have sent windows installer logs.
Posted 25 Dec, 2013 22:54:35 Top
Andrei Smolin


Add-in Express team


Posts: 14720
Joined: 2006-05-11
Ravi,

Could you please confirm that you are able create and delete a custom key in that registry key (see above)?

Also, could you please try writing to that key from a simple .EXE? And finally, please confirm that a newly created IE add-on project with an IE bar produces the same problem.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 26 Dec, 2013 07:27:03 Top
ravinukala




Posts: 103
Joined: 2012-10-05
Hi Andrei,

I have tried create/delete custom registry key & it's created/deleted successfully.
Also I wrote key in registry through .EXE & it's created.
I have installed newly created IE add-on project & it's installed successfully.
But the same issue persist.

what should be the next step?
Posted 07 Jan, 2014 00:01:54 Top
Dmitry Kostochko


Add-in Express team


Posts: 2742
Joined: 2004-04-05
Hello Ravi,

I have installed newly created IE add-on project & it's installed successfully.


Please try to create a new simple IE Bar project and try to install it on the affected machine.
Posted 08 Jan, 2014 08:09:22 Top
ravinukala




Posts: 103
Joined: 2012-10-05
It doesn't seen in IE Manage-add on list.
I also suggested to client to reinstall the Internet explorer. But it doesn't work.
Posted 26 Jan, 2014 23:06:53 Top
Andrei Smolin


Add-in Express team


Posts: 14720
Joined: 2006-05-11
Ravi,

Could you please send us adxregistrator.log for this IE Bar installation? If it contains an exception also please send us the IE Bar project.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 27 Jan, 2014 07:31:19 Top
ravinukala




Posts: 103
Joined: 2012-10-05
Add-in Express Registrator Log File: 01/24/2014 18:09:43

Installation directory: C:\Program Files (x86)\Qualitia\Qualitia_MyIEBar1\MyIEBar1\
Registrator version: 8.3.5068.0
Operating System: Microsoft Windows 7 Enterprise Edition Service Pack 1 (build 7601), 64-bit
Process Owner: Administrator
Command Line: "C:\Program Files (x86)\Qualitia\Qualitia_MyIEBar1\MyIEBar1\adxregistrator.exe" /install="MyIEBar1.dll" /privileges=admin
Run 'As Administrator': Yes
Process Elevated: Yes
Integrity Level: High
UAC (User Account Control): Off
--------------------------------------------------------------
18:09:43 0208 Starting the add-in registration process.
18:09:43 0208 Loading mscoree.dll
18:09:43 0208 Success.
18:09:43 0208 .NET Framework installation directory:
18:09:43 0208 The latest version of .NET Framework: 'v4.0.30319'
18:09:43 0208 Loading CLR: v4.0.30319.
18:09:43 0208 Calling CLRCreateInstance method.
18:09:43 0208 Success.
18:09:43 0208 Calling GetRuntime method.
18:09:43 0208 Success.
18:09:43 0208 Checking if the hosting API of .NET Framework v4.0 beta is installed.
18:09:43 0208 The hosting API is up to date.
18:09:43 0208 Calling GetInterface method for the CorRuntimeHost interface.
18:09:43 0208 Success.
18:09:43 0208 Starting CLR...
18:09:43 0208 Success.
18:09:43 0208 Getting the CLR version.
18:09:43 0208 The CLR v4.0.30319 has been initialized successfully.
18:09:43 0208 Creating a new domain setup.
18:09:43 0208 Success.
18:09:43 0208 Getting the add-in directory.
18:09:43 0208 Success. The directory is 'C:\Program Files (x86)\Qualitia\Qualitia_MyIEBar1\MyIEBar1\'
18:09:43 0208 The 'shadow copy' is disabled.
18:09:43 0208 Creating a new application domain.
18:09:43 0208 Success.
18:09:43 0208 Getting the base directory for the domain.
18:09:43 0208 Success. The directory is 'C:\Program Files (x86)\Qualitia\Qualitia_MyIEBar1\MyIEBar1\'.
18:09:43 0208 Searching for the Add-in Express core library.
18:09:43 0208 Success. The 'AddinExpress.IE.dll' file is found.
18:09:43 0208 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
18:09:43 0208 Assembly identity is 'AddinExpress.IE'.
18:09:43 0208 Success.
18:09:43 0208 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
18:09:43 0208 Success.
18:09:43 0208 Calling the managed registration procedure.
18:09:43 0696 Connecting to the application domain of the Add-in Express loader.
18:09:43 0696 Success.
18:09:43 0696 Loading the 'MyIEBar1.dll' assembly.
18:09:43 0696 Success.
18:09:43 0696 Registering the 'MyIEBar1.dll' assembly (administrator).
18:09:45 0208 Managed Error:
(Inner Exception)
Date and Time: 1/24/2014 6:09:45 PM
Machine Name: PU-SDSKUMA1
IP Address: fe80::c9e0:7c93:c358:a260%13
Current User: ZS\skumar4

Application Domain: C:\Program Files (x86)\Qualitia\Qualitia_MyIEBar1\MyIEBar1\
Assembly Codebase: file:///C:/Program Files (x86)/Qualitia/Qualitia_MyIEBar1/MyIEBar1/AddinExpress.IE.DLL
Assembly Full Name: AddinExpress.IE, Version=8.3.5068.0, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 8.3.5068.0

Exception Source: AddinExpress.IE
Exception Type: System.ComponentModel.Win32Exception
Exception Message: Access is denied
Exception Target Site: OpenSubKey

---- Stack Trace ----
AddinExpress.Projects.Common.ADXRegistryKey.OpenSubKey(subKeyName As String, writable As Boolean)
AddinExpress.IE.DLL: N 0134 (0x86) IL
AddinExpress.IE.ADXIEModule.RegisterBarItem(root As ADXRegistryKey, buttonRoot As ADXRegistryKey, hklm As ADXRegistryKey, hkcu As ADXRegistryKey, item As ADXIEBarItem, t As Type, moduleTypeName As String, admin As Boolean, x86Process As Boolean)
AddinExpress.IE.DLL: N 0900 (0x384) IL
AddinExpress.IE.ADXIEModule.RegisterIEModuleInternal(t As Type)
AddinExpress.IE.DLL: N 0483 (0x1E3) IL
MyIEBar1.IEModule.RegisterIEModule(t As Type)
AddinExpress.IE.DLL: N 0000 (0x0) IL



(Outer Exception)
Date and Time: 1/24/2014 6:09:45 PM
Machine Name: PU-SDSKUMA1
IP Address: fe80::c9e0:7c93:c358:a260%13
Current User: ZS\skumar4

Application Domain: C:\Program Files (x86)\Qualitia\Qualitia_MyIEBar1\MyIEBar1\
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.Reflection.TargetInvocationException
Exception Message: Exception has been thrown by the target of an invocation.
Exception Target Site: _InvokeMethodFast

---- Stack Trace ----
System.RuntimeMethodHandle._InvokeMethodFast(method As IRuntimeMethodInfo, target As Object, arguments As Object[], sig As SignatureStruct&, methodAttributes As MethodAttributes, typeOwner As RuntimeType)
mscorlib.dll: N 00000 (0x0) JIT
System.RuntimeMethodHandle.InvokeMethodFast(method As IRuntimeMethodInfo, target As Object, arguments As Object[], sig As Signature, methodAttributes As MethodAttributes, typeOwner As RuntimeType)
mscorlib.dll: N 0007 (0x7) IL
System.Reflection.RuntimeMethodInfo.Invoke(obj As Object, invokeAttr As BindingFlags, binder As Binder, parameters As Object[], culture As CultureInfo, skipVisibilityChecks As Boolean)
mscorlib.dll: N 0167 (0xA7) IL
System.Reflection.RuntimeMethodInfo.Invoke(obj As Object, invokeAttr As BindingFlags, binder As Binder, parameters As Object[], culture As CultureInfo)
mscorlib.dll: N 0000 (0x0) IL
AddinExpress.Projects.Common.Utilities.CallUserDefinedRegistrationMethod(rootKey As ADXRegistryKey, type As Type, bRegister As Boolean, targetHive As ADXTargetRegistryHive)
mscorlib.dll: N 0332 (0x14C) IL
AddinExpress.Projects.Common.Utilities.RegisterType(t As Type, createVersionKey As Boolean, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
mscorlib.dll: N 0227 (0xE3) IL
AddinExpress.Projects.Common.Utilities.RegisterAssembly(assembly As Assembly, createVersionKey As Boolean, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
mscorlib.dll: N 0040 (0x28) IL
AddinExpress.Deployment.AddinDomainAdapter.RegisterForComInterop(register As Boolean, dllType As String, dllPath As String, showExceptions As Boolean, logFullPath As String)
mscorlib.dll: N 0245 (0xF5) IL
AddinExpress.Deployment.ADXRegistrator.RegisterAssembly(commandLine As String)
mscorlib.dll: N 0437 (0x1B5) IL



18:09:45 0208 The add-in registration process is completed with HRESULT = -2147467259.
Posted 27 Jan, 2014 08:19:10 Top
Andrei Smolin


Add-in Express team


Posts: 14720
Joined: 2006-05-11
Thank you.

Could you please send us the solution for the test IE bar including the .MSI installer?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 27 Jan, 2014 08:29:04 Top