Error at Outlook-Addin registration

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

Error at Outlook-Addin registration
 
Alexander Schweighofer




Posts: 28
Joined: 2009-06-02
Hello!

I've a problem with the registration of an outlook addin. As long as I register it from visual studio, all works great. When I install it using the msi (no error) the addin simply does not show in outlook. Even recreating the setup project didn't change anything.

there were no (known) changes to the setup project and it worked perfectly in erlier versions of the addin!?

the adxregistrator shows an error that the addin assembly could not be found, but it is there. removing the "" in the custom actions for adxregistrator.exe leads to an other error concerning the framework version ...

Can anybody help?

kind regards,
alex
Posted 23 Nov, 2010 06:37:17 Top
Alexander Schweighofer




Posts: 28
Joined: 2009-06-02
adxloader.log:

Add-in Express Loader Log File: 11/23/2010 13:03:48

Startup directory: D:UsersjstProjekteUnycom - Outlook Integration	runkIPMSAddinDeployDebug
Loader version: 6.2.3050 
------------------
13:03:48 5332 5664 Start.
13:03:48 5332 5664 Reading the registry key 'HKEY_CLASSES_ROOTCLSID{A5522875-B817-4B52-9244-AD294A10CD46}'
13:03:48 5332 5664 Success. The registry key 'HKEY_CLASSES_ROOTCLSID{A5522875-B817-4B52-9244-AD294A10CD46}' is closed.
13:03:48 5332 5664 Converting the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID from string.
13:03:48 5332 5664 Success.
13:03:48 5332 5664 Attempting to get the class object by the '{4BA250A6-8BCA-46A6-982A-F340081187C3}' CLSID.
13:03:48 5332 5664 Success.
13:03:48 5332 5664 Creating a new instance of the add-in loader.
13:03:48 5332 5664 Success.
13:03:48 5332 5664 Loading the configuration from the system registry.
13:03:48 5332 5664 Getting the latest CLR version.
13:03:48 5332 5664 The latest CLR version is 'v4.0.30319'.
13:03:48 5332 5664 The configuration has been loaded successfully.
13:03:48 5332 5664     Runtime version: v2.0.50727.
13:03:48 5332 5664     Assembly name: IPMSAddin, PublicKeyToken=D1634B8BD0B49773.
13:03:48 5332 5664     Class name: IPMSAddin.AddinModule.
13:03:48 5332 5664 Attempting to create a new instance of the managed add-in class: CLR - v2.0.50727
13:03:48 5332 5664 Loading CLR: v2.0.50727.
13:03:48 5332 5664 Calling CLRCreateInstance method.
13:03:48 5332 5664 Success.
13:03:48 5332 5664 Calling GetRuntime method.
13:03:48 5332 5664 Success.
13:03:48 5332 5664 Calling GetInterface method.
13:03:48 5332 5664 Calling GetInterface method for the CorRuntimeHost interface.
13:03:48 5332 5664 Success.
13:03:48 5332 5664 Starting CLR...
13:03:48 5332 5664 Success.
13:03:48 5332 5664 The CLR v2.0.50727 has been initialized successfully.
13:03:48 5332 5664 Creating a new domain setup.
13:03:48 5332 5664 Success.
13:03:48 5332 5664 Getting the add-in directory.
13:03:48 5332 5664 Success. The directory is 'D:UsersjstProjekteUnycom - Outlook Integration	runkIPMSAddinDeployDebug'
13:03:48 5332 5664 The configuration file is 'D:UsersjstProjekteUnycom - Outlook Integration	runkIPMSAddinDeployDebugpp.config'
13:03:48 5332 5664 The 'shadow copy' is enabled.
13:03:48 5332 5664 Creating a new application domain.
13:03:48 5332 5664 Success.
13:03:50 5332 5664 Unwrapping the managed class.
13:03:50 5332 5664 Success.
13:03:50 5332 5664 Querying the add-in extensibility.
13:03:50 5332 5664 Querying the custom task panes.
13:03:50 5332 5664 Querying the ribbon extensibility.
13:03:50 5332 5664 Success.
13:03:50 5332 5664 Querying the form regions.
13:03:50 5332 5664 Success.
13:03:50 5332 5664 Getting the dispid of the 'Dispose' method.
13:03:50 5332 5664 Success.
13:03:50 5332 5664 The managed add-in class has been created successfully.
Posted 23 Nov, 2010 06:38:01 Top
Alexander Schweighofer




Posts: 28
Joined: 2009-06-02
adxregistrator.log

Add-in Express Registrator Log File: 11/23/2010 13:06:54

Installation directory: C:UsersjstAppDataRoamingUnycom IT Services GmbHUnycom Outlook2IPMS Export Tool
Registrator version: 6.2.3051.0
Operating System: Microsoft Windows Vista Business Edition Service Pack 1 (build 6001), 64-bit
Process Owner: Administrator
Command Line: "C:UsersjstAppDataRoamingUnycom IT Services GmbHUnycom Outlook2IPMS Export Tooldxregistrator.exe" /install=?Â?Ð?íIPMSAddin.dll?Â?Ð?í /privileges=admin
Run 'As Administrator': Yes
Process Elevated: Yes
Integrity Level: High
UAC (User Account Control): Off
--------------------------------------------------------------
13:06:54 Starting the add-in registration process.
13:06:54 Loading mscoree.dll
13:06:54 Success.
13:06:54 .NET Framework installation directory: 
13:06:54 The latest version of .NET Framework: 'v4.0.30319'
13:06:54 Loading CLR: v4.0.30319.
13:06:54 Calling CLRCreateInstance method.
13:06:54 Success.
13:06:54 Calling GetRuntime method.
13:06:54 Success.
13:06:54 Calling GetInterface method.
13:06:54 Calling GetInterface method for the CorRuntimeHost interface.
13:06:54 Success.
13:06:54 Starting CLR...
13:06:54 Success.
13:06:54 The CLR v4.0.30319 has been initialized successfully.
13:06:54 Creating a new domain setup.
13:06:54 Success.
13:06:54 Getting the add-in directory.
13:06:54 Success. The directory is 'C:UsersjstAppDataRoamingUnycom IT Services GmbHUnycom Outlook2IPMS Export Tool'
13:06:54 The 'shadow copy' is disabled.
13:06:54 Creating a new application domain.
13:06:54 Success.
13:06:54 Getting the base directory for the domain.
13:06:54 Success. The directory is 'C:UsersjstAppDataRoamingUnycom IT Services GmbHUnycom Outlook2IPMS Export Tool'.
13:06:54 Searching for the Add-in Express core library.
13:06:54 Success. The 'AddinExpress.MSO.2005.dll' file is found.
13:06:54 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
13:06:54 Assembly identity is 'AddinExpress.MSO.2005'.
13:06:54 Success.
13:06:54 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
13:06:54 Success.
13:06:54 Calling the managed registration procedure.
13:06:54 Managed Error: 
Date and Time:         23.11.2010 13:06:54
Machine Name:          SOLVION-WS10
IP Address:            fe80::e4ff:2e30:8459:bc27%8
Current User:          SOLVIONjst

Application Domain:    C:UsersjstAppDataRoamingUnycom IT Services GmbHUnycom Outlook2IPMS Export Tool
Assembly Codebase:     file:///C:/Windows/assembly/GAC_MSIL/AddinExpress.MSO.2005/6.2.3051.2005__4416dd98f0861965/AddinExpress.MSO.2005.dll
Assembly Full Name:    AddinExpress.MSO.2005, Version=6.2.3051.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version:      6.2.3051.2005

Exception Source:      AddinExpress.MSO.2005
Exception Type:        System.ApplicationException
Exception Message:     The 'c:usersjstppdata
oamingunycom it services gmbhunycom outlook2ipms export tool?Â?Ð?íipmsaddin.dll?Â?Ð?í' file doesn't exist in the application directory.
Exception Target Site: RegisterAssembly

---- Stack Trace ----
   AddinExpress.Deployment.ADXRegistrator.RegisterAssembly(commandLine As String)
       AddinExpress.MSO.2005.dll: N 0424 (0x1A8) IL 



13:06:54 The add-in registration process is completed with HRESULT = -2147467259.
Posted 23 Nov, 2010 06:38:28 Top
Alexander Schweighofer




Posts: 28
Joined: 2009-06-02
adxregistrator.log after removing the ""

Add-in Express Registrator Log File: 11/23/2010 13:25:03

Installation directory: C:UsersjstAppDataRoamingUnycom IT Services GmbHUnycom Outlook2IPMS Export Tool
Registrator version: 6.2.3051.0
Operating System: Microsoft Windows Vista Business Edition Service Pack 1 (build 6001), 64-bit
Process Owner: Administrator
Command Line: "C:UsersjstAppDataRoamingUnycom IT Services GmbHUnycom Outlook2IPMS Export Tooldxregistrator.exe" /install=IPMSAddin.dll /privileges=admin
Run 'As Administrator': Yes
Process Elevated: Yes
Integrity Level: High
UAC (User Account Control): Off
--------------------------------------------------------------
13:25:03 Starting the add-in registration process.
13:25:03 Loading mscoree.dll
13:25:03 Success.
13:25:03 .NET Framework installation directory: 
13:25:03 The latest version of .NET Framework: 'v4.0.30319'
13:25:03 Loading CLR: v4.0.30319.
13:25:03 Calling CLRCreateInstance method.
13:25:03 Success.
13:25:03 Calling GetRuntime method.
13:25:03 Success.
13:25:03 Calling GetInterface method.
13:25:03 Calling GetInterface method for the CorRuntimeHost interface.
13:25:03 Success.
13:25:03 Starting CLR...
13:25:03 Success.
13:25:03 The CLR v4.0.30319 has been initialized successfully.
13:25:03 Creating a new domain setup.
13:25:03 Success.
13:25:03 Getting the add-in directory.
13:25:03 Success. The directory is 'C:UsersjstAppDataRoamingUnycom IT Services GmbHUnycom Outlook2IPMS Export Tool'
13:25:03 The 'shadow copy' is disabled.
13:25:03 Creating a new application domain.
13:25:03 Success.
13:25:03 Getting the base directory for the domain.
13:25:03 Success. The directory is 'C:UsersjstAppDataRoamingUnycom IT Services GmbHUnycom Outlook2IPMS Export Tool'.
13:25:03 Searching for the Add-in Express core library.
13:25:03 Success. The 'AddinExpress.MSO.2005.dll' file is found.
13:25:03 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
13:25:03 Assembly identity is 'AddinExpress.MSO.2005'.
13:25:03 Success.
13:25:03 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
13:25:03 Success.
13:25:03 Calling the managed registration procedure.
13:25:03 540  Connecting to the application domain of the Add-in Express loader.
13:25:03 540  Success.
13:25:03 540  Loading the 'ipmsaddin.dll' assembly.
13:25:03 540  Success.
13:25:03 540  Registering the 'ipmsaddin.dll' assembly (administrator).
13:25:05 Managed Error: 
(Inner Exception)
(Inner Exception)
Date and Time:         23.11.2010 13:25:05
Machine Name:          SOLVION-WS10
IP Address:            fe80::e4ff:2e30:8459:bc27%8
Current User:          SOLVIONjst

Application Domain:    C:UsersjstAppDataRoamingUnycom IT Services GmbHUnycom Outlook2IPMS Export Tool
Assembly Codebase:     file:///C:/Windows/assembly/GAC_MSIL/AddinExpress.MSO.2005/6.2.3051.2005__4416dd98f0861965/AddinExpress.MSO.2005.dll
Assembly Full Name:    AddinExpress.MSO.2005, Version=6.2.3051.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version:      6.2.3051.2005

Exception Source:      IPMSAddin
Exception Type:        System.IO.FileLoadException
Exception Message:     Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
Exception Target Site: InitializeComponent

---- Stack Trace ----
   IPMSAddin.AddinModule.InitializeComponent()
       AddinExpress.MSO.2005.dll: N 00000 (0x0) JIT 
   IPMSAddin.AddinModule..ctor()
       AddinExpress.MSO.2005.dll: N 0040 (0x28) IL 



(Outer Exception)
Date and Time:         23.11.2010 13:25:05
Machine Name:          SOLVION-WS10
IP Address:            fe80::e4ff:2e30:8459:bc27%8
Current User:          SOLVIONjst

Application Domain:    C:UsersjstAppDataRoamingUnycom IT Services GmbHUnycom Outlook2IPMS Export Tool
Assembly Codebase:     file:///C:/Windows/assembly/GAC_MSIL/AddinExpress.MSO.2005/6.2.3051.2005__4416dd98f0861965/AddinExpress.MSO.2005.dll
Assembly Full Name:    AddinExpress.MSO.2005, Version=6.2.3051.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version:      6.2.3051.2005

Exception Source:      mscorlib
Exception Type:        System.Reflection.TargetInvocationException
Exception Message:     Exception has been thrown by the target of an invocation.
Exception Target Site: CreateInstance

---- Stack Trace ----
   System.RuntimeTypeHandle.CreateInstance(type As RuntimeType, publicOnly As Boolean, noCheck As Boolean, canBeCached As Boolean&, ctor As RuntimeMethodHandleInternal&, bNeedSecurityCheck As Boolean&)
       AddinExpress.MSO.2005.dll: N 00000 (0x0) JIT 
   System.RuntimeType.CreateInstanceSlow(publicOnly As Boolean, skipCheckThis As Boolean, fillCache As Boolean)
       AddinExpress.MSO.2005.dll: N 0028 (0x1C) IL 
   System.RuntimeType.CreateInstanceDefaultCtor(publicOnly As Boolean, skipVisibilityChecks As Boolean, skipCheckThis As Boolean, fillCache As Boolean)
       AddinExpress.MSO.2005.dll: N 0165 (0xA5) IL 
   System.Activator.CreateInstance(type As Type, nonPublic As Boolean)
       AddinExpress.MSO.2005.dll: N 0056 (0x38) IL 
   AddinExpress.MSO.ADXAddinModule.ADXRegister(t As Type)
       AddinExpress.MSO.2005.dll: N 0598 (0x256) IL 
   IPMSAddin.AddinModule.AddinRegister(t As Type)
       AddinExpress.MSO.2005.dll: N 0001 (0x1) IL 



(Outer Exception)
Date and Time:         23.11.2010 13:25:05
Machine Name:          SOLVION-WS10
IP Address:            fe80::e4ff:2e30:8459:bc27%8
Current User:          SOLVIONjst

Application Domain:    C:UsersjstAppDataRoamingUnycom IT Services GmbHUnycom Outlook2IPMS Export Tool
Assembly Codebase:     file:///C:/Windows/assembly/GAC_MSIL/AddinExpress.MSO.2005/6.2.3051.2005__4416dd98f0861965/AddinExpress.MSO.2005.dll
Assembly Full Name:    AddinExpress.MSO.2005, Version=6.2.3051.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version:      6.2.3051.2005

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)
       AddinExpress.MSO.2005.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)
       AddinExpress.MSO.2005.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)
       AddinExpress.MSO.2005.dll: N 0167 (0xA7) IL 
   System.Reflection.RuntimeMethodInfo.Invoke(obj As Object, invokeAttr As BindingFlags, binder As Binder, parameters As Object[], culture As CultureInfo)
       AddinExpress.MSO.2005.dll: N 0000 (0x0) IL 
   AddinExpress.Projects.Common.Utilities.CallUserDefinedRegistrationMethod(type As Type, bRegister As Boolean, targetHive As ADXTargetRegistryHive)
       AddinExpress.MSO.2005.dll: N 0337 (0x151) IL 
   AddinExpress.Projects.Common.Utilities.RegisterType(t As Type, createVersionKey As Boolean, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
       AddinExpress.MSO.2005.dll: N 0247 (0xF7) IL 
   AddinExpress.Projects.Common.Utilities.RegisterAssembly(assembly As Assembly, createVersionKey As Boolean, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
       AddinExpress.MSO.2005.dll: N 0040 (0x28) IL 
   AddinExpress.Deployment.AddinDomainAdapter.RegisterForComInterop(register As Boolean, dllType As String, dllPath As String, showExceptions As Boolean, logFullPath As String)
       AddinExpress.MSO.2005.dll: N 0228 (0xE4) IL 
   AddinExpress.Deployment.ADXRegistrator.RegisterAssembly(commandLine As String)
       AddinExpress.MSO.2005.dll: N 0437 (0x1B5) IL 



13:25:05 The add-in registration process is completed with HRESULT = -2147467259.
Posted 23 Nov, 2010 06:38:58 Top
Alexander Schweighofer




Posts: 28
Joined: 2009-06-02
Posted 23 Nov, 2010 07:22:42 Top
Andrei Smolin


Add-in Express team


Posts: 18857
Joined: 2006-05-11
Hi Alexander,

Does a newly created empty add-in project with a newly generated setup project produce the same behavior?


Andrei Smolin
Add-in Express Team Leader
Posted 23 Nov, 2010 08:16:59 Top
Alexander Schweighofer




Posts: 28
Joined: 2009-06-02
Hello!

No, if I create a completely new Addin, the setup works as expected!

regards alex
Posted 23 Nov, 2010 08:37:42 Top
Andrei Smolin


Add-in Express team


Posts: 18857
Joined: 2006-05-11
Hi Alexander,

It looks like you need to check if you depploy the very same assembly that your add-in project produces.


Andrei Smolin
Add-in Express Team Leader
Posted 23 Nov, 2010 09:02:11 Top
Alexander Schweighofer




Posts: 28
Joined: 2009-06-02
Hi!

I don't think that this is the problem.

I transfered the sourcees from my original Addin to the working empty addin. After recreating the setup the new addin stopped working resulting in the same error in the adxregistrator.log.

I guess the error origninates from some referenced assembly?

Accessibility
AddinExpress.MAPI
AddinExpress.MSO.2005
extensibility
Interop.Office
Interop.Outlook

System
System.Data
System.Design
System.Drawing
System.Web.Services
System.Windows.Forms
System.Xml


regards alex
Posted 23 Nov, 2010 09:17:58 Top
Eugene Astafiev


Guest


Hi Alexander,

Please have a look at the http://www.add-in-express.com/forum/read.php?FID=5&TID=7894 forum thread. It states:

It looks like you need to create a config file (or modify an existing one) for the host application (Outlook in your case). Name it Outlook.exe.config and place it in the same folder where Outlook.exe resides. Typically, for Outlook 2007, it is the C:\Program Files\Microsoft Office\Office12 folder. Please use the following content for the config file:

<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>

Please let me know whether it works for you.
Posted 23 Nov, 2010 09:33:57 Top