KeyNotFoundException Exception when trying to register ADX project

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

KeyNotFoundException Exception when trying to register ADX project
 
Steve Shannon




Posts: 18
Joined: 2011-03-18
Folks,

I'm writing an add-in for Outlook 2007+, but the project is failing to register successfully. This is a Windows 7 machine with Office 2007. The project registers successfully on a separate machine running Windows Vista with Office 2007. The exception being thrown is as follows:


Detailed technical information follows:
---
(Inner Exception)
(Inner Exception)
Date and Time: 8/8/2011 11:06:56 AM
Machine Name: HP
IP Address: fe80::2c74:168e:3f57:fe25%17
Current User: HP\Steve

Application Domain: DefaultDomain
Assembly Codebase: file:///C:/Program Files/Add-in Express/Add-in Express for .NET/Bin/Packages/VS2005/AddinExpress.Wizard.dll
Assembly Full Name: AddinExpress.Wizard, Version=6.3.3052.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 6.3.3052.2005

Exception Source: mscorlib
Exception Type: System.Collections.Generic.KeyNotFoundException
Exception Message: The given key was not present in the dictionary.
Exception Target Site: Object reference not set to an instance of an object.

---- Stack Trace ----



(Outer Exception)
Date and Time: 8/8/2011 11:06:56 AM
Machine Name: HP
IP Address: fe80::2c74:168e:3f57:fe25%17
Current User: HP\Steve

Application Domain: DefaultDomain
Assembly Codebase: file:///C:/Program Files/Add-in Express/Add-in Express for .NET/Bin/Packages/VS2005/AddinExpress.Wizard.dll
Assembly Full Name: AddinExpress.Wizard, Version=6.3.3052.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 6.3.3052.2005

Exception Source: mscorlib
Exception Type: System.Reflection.TargetInvocationException
Exception Message: Exception has been thrown by the target of an invocation.
Exception Target Site: Object reference not set to an instance of an object.

---- Stack Trace ----



(Outer Exception)
Date and Time: 8/8/2011 11:06:56 AM
Machine Name: HP
IP Address: fe80::2c74:168e:3f57:fe25%17
Current User: HP\Steve

Application Domain: DefaultDomain
Assembly Codebase: file:///C:/Program Files/Add-in Express/Add-in Express for .NET/Bin/Packages/VS2005/AddinExpress.Wizard.dll
Assembly Full Name: AddinExpress.Wizard, Version=6.3.3052.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 6.3.3052.2005

Exception Source: AddinExpress.Wizard
Exception Type: System.Exception
Exception Message: The 'RegisterAssembly' function failed.
Exception Target Site: DoAfterBuild

---- Stack Trace ----
AddinExpress.Projects.Common.Registrator.DoAfterBuild(scope As vsBuildScope, action As vsBuildAction)
AddinExpress.Wizard.dll: N 0431 (0x1AF) IL
Posted 08 Aug, 2011 10:25:57 Top
Eugene Astafiev


Guest


Hi Steve,

Do you have any applied code in the add-in module ctor? If so, please try to move it to the AddinInitialize or AddinStartupComplete event handler.

BTW Also I have noticed that you use an old build of Add-in Express 2010. You can download the latest build from http://www.add-in-express.com/downloads/adxnet.php.
Posted 08 Aug, 2011 10:57:20 Top
Steve Shannon




Posts: 18
Joined: 2011-03-18
Thank Eugene -- that was it. I had accidentally dropped a function call in there. I'll grab the latest version of ADX also, thanks for the heads up.

Best,
Steve
Posted 08 Aug, 2011 11:05:00 Top