Weird error installing after upgrading to Add In Express 2010

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

Weird error installing after upgrading to Add In Express 2010
 
Kevin Moore




Posts: 93
Joined: 2008-12-03
A user has forwarded me their adxregistrator.log file after the system installs but doesn't show up in Outlook. Following is their log file, any ideas?

Add-in Express Registrator Log File: 07/07/2010 08:16:04

Installation directory: C:\Program Files (x86)\Moore Software Solutions Inc\MissingLink Project Management\
Registrator version: 6.0.3043.0
-------------------------------
08:16:04 Starting the add-in registration process.
08:16:04 Loading mscoree.dll
08:16:04 Success.
08:16:04 .NET Framework installation directory:
08:16:04 The latest version of .NET Framework: 'v4.0.30319'
08:16:04 Loading CLR: v4.0.30319.
08:16:04 Calling GetCLRMetaHost method.
08:16:04 Failed.
08:16:04 The loader will try to use the old Framework API.
08:16:04 The CLR v4.0.30319 has been initialized successfully.
08:16:04 Creating a new domain setup.
08:16:04 Success.
08:16:04 Getting the add-in directory.
08:16:04 Success. The directory is 'C:\Program Files (x86)\Moore Software Solutions Inc\MissingLink Project Management\'
08:16:04 The configuration file is '(null)'
08:16:04 The 'shadow copy' is disabled.
08:16:04 Creating a new application domain.
08:16:04 Success.
08:16:04 Getting the base directory for the domain.
08:16:04 Success. The directory is 'C:\Program Files (x86)\Moore Software Solutions Inc\MissingLink Project Management\'.
08:16:04 Searching for the Add-in Express core library.
08:16:04 Success. The 'AddinExpress.MSO.2005.dll' file is found.
08:16:04 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
08:16:04 Assembly identity is 'AddinExpress.MSO.2005'.
08:16:04 Success.
08:16:04 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
08:16:04 Success.
08:16:04 Calling the managed registration procedure.
08:16:15 Managed Error:
(Inner Exception)
(Inner Exception)
(Inner Exception)
Date and Time: 7/7/2010 8:16:12 AM
Machine Name: AARON-PC
IP Address: fe80::2990:c5bd:30a1:2f59%11
Current User: Aaron-PC\Aaron

Application Domain: C:\Program Files (x86)\Moore Software Solutions Inc\MissingLink Project Management\
Assembly Codebase: file:///C:/Program Files (x86)/Moore Software Solutions Inc/MissingLink Project Management/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=6.0.3043.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 6.0.3043.2005
Assembly Build Date: 5/1/2008 2:06:50 AM

Exception Source:
Exception Type: System.IO.FileLoadException
Exception Message: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Exception Target Site: Object reference not set to an instance of an object.

---- Stack Trace ----



(Outer Exception)
Date and Time: 7/7/2010 8:16:15 AM
Machine Name: AARON-PC
IP Address: fe80::2990:c5bd:30a1:2f59%11
Current User: Aaron-PC\Aaron

Application Domain: C:\Program Files (x86)\Moore Software Solutions Inc\MissingLink Project Management\
Assembly Codebase: file:///C:/Program Files (x86)/Moore Software Solutions Inc/MissingLink Project Management/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=6.0.3043.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 6.0.3043.2005
Assembly Build Date: 5/1/2008 2:06:50 AM

Exception Source: Janus.Windows.UI.v3
Exception Type: System.IO.FileLoadException
Exception Message: Could not load file or assembly 'System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Exception Target Site: z

---- Stack Trace ----
Janus.Windows.UI.Dock.UIPanelManager.z()
AddinExpress.MSO.2005.DLL: N 00000 (0x0) JIT
Janus.Windows.UI.Dock.UIPanelManager.set_ContainerControl(value As Control)
AddinExpress.MSO.2005.DLL: N 0093 (0x5D) IL
OutlookPCAddIn.frmProjectOverview.InitializeComponent()
AddinExpress.MSO.2005.DLL: N 3921 (0xF51) IL
OutlookPCAddIn.frmProjectOverview..ctor()
AddinExpress.MSO.2005.DLL: N 0058 (0x3A) IL
OutlookPCAddIn.AddinModule..ctor()
AddinExpress.MSO.2005.DLL: N 0178 (0xB2) IL



(Outer Exception)
Date and Time: 7/7/2010 8:16:15 AM
Machine Name: AARON-PC
IP Address: fe80::2990:c5bd:30a1:2f59%11
Current User: Aaron-PC\Aaron

Application Domain: C:\Program Files (x86)\Moore Software Solutions Inc\MissingLink Project Management\
Assembly Codebase: file:///C:/Program Files (x86)/Moore Software Solutions Inc/MissingLink Project Management/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=6.0.3043.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 6.0.3043.2005
Assembly Build Date: 5/1/2008 2:06:50 AM

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
OutlookPCAddIn.AddinModule.AddinRegister(t As Type)
AddinExpress.MSO.2005.DLL: N 0000 (0x0) IL



(Outer Exception)
Date and Time: 7/7/2010 8:16:15 AM
Machine Name: AARON-PC
IP Address: fe80::2990:c5bd:30a1:2f59%11
Current User: Aaron-PC\Aaron

Application Domain: C:\Program Files (x86)\Moore Software Solutions Inc\MissingLink Project Management\
Assembly Codebase: file:///C:/Program Files (x86)/Moore Software Solutions Inc/MissingLink Project Management/AddinExpress.MSO.2005.DLL
Assembly Full Name: AddinExpress.MSO.2005, Version=6.0.3043.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 6.0.3043.2005
Assembly Build Date: 5/1/2008 2:06:50 AM

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 0336 (0x150) 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 0174 (0xAE) 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 0038 (0x26) IL
AddinExpress.Deployment.AddinDomainAdapter.RegisterForComInterop(register As Boolean, dllType As String, dllPath As String, showExceptions As Boolean)
AddinExpress.MSO.2005.DLL: N 0055 (0x37) IL
AddinExpress.Deployment.ADXRegistrator.RegisterAssembly(commandLine As String)
AddinExpress.MSO.2005.DLL: N 0437 (0x1B5) IL



08:16:15 The add-in registration process is completed with HRESULT = -2147467259.
Posted 07 Jul, 2010 09:32:24 Top
Kevin Moore




Posts: 93
Joined: 2008-12-03
As a follow up, the client appears to be running the .net framework version 4.0.30319, if I run it on my test machine I can duplicate the results but only if I install version 4 of the .net framework, v3.5 sp1 doesn't cause this to happen.
Posted 07 Jul, 2010 10:07:02 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Kevin.

I guess that the target PC has .NET Framework v4.0 Client Profile installed. Please try to install the full edition of .NET Framework v4.0. It should solve the issue with the System.Design.dll assembly.
Posted 07 Jul, 2010 10:42:08 Top
Kevin Moore




Posts: 93
Joined: 2008-12-03
Sergey,

On my test machine I did install the client profile and was able to get the same error, I'll install the full edition of the framework but I was hoping you could provide an idea what the problem is with System.Design?
Posted 07 Jul, 2010 11:55:20 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hi Kevin,

Some component in your add-in requires System.Design but it isn't included in .NET Framework 4.0 Client Profile. Please find several intereseting comments on usefulness of .NET Framework 4.0 Client Profile at http://www.hanselman.com/blog/TowardsASmallerNET4DetailsOnTheClientProfileAndDownloadingNET.aspx.


Andrei Smolin
Add-in Express Team Leader
Posted 07 Jul, 2010 12:45:29 Top
Kevin Moore




Posts: 93
Joined: 2008-12-03
Andrei,

Thanks for the link. I have found that post after doing some searching on this issue. It looks like I'll have to build a Launch Condition into my installer that checks if the Client Profile is installed and not the Full Version.

You might want to put that out on your blog as I think more people are going to run into this issue with more people installing the 4.0 Client Profile.

Do you have any plans to remove the dependency on System.Design.dll from Add-In Express?

Kevin
Posted 07 Jul, 2010 12:51:30 Top
Andrei Smolin


Add-in Express team


Posts: 18829
Joined: 2006-05-11
Hi Kevin,

Kevin Moore wrote:
Do you have any plans to remove the dependency on System.Design.dll from Add-In Express?


It looks like the dependency is caused by a component used in your add-in:

Exception Source: Janus.Windows.UI.v3
Exception Type: System.IO.FileLoadException
Exception Message: Could not load file or assembly 'System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


But I'd like to check this. May I ask you to create a new empty add-in and install it on that system?


Andrei Smolin
Add-in Express Team Leader
Posted 08 Jul, 2010 01:50:30 Top