Unregister adx project and got an exception

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

Unregister adx project and got an exception
 
Bala Mukund




Posts: 19
Joined: 2011-09-08
I unregister ADX project in VS and get the exception
thanks

Detailed technical information follows:
---
(Inner Exception)
(Inner Exception)
Date and Time: 4/2/2012 9:51:21 AM
Machine Name: YHOU-DT
IP Address: 172.23.240.71
Current User: MSDOMAIN1\yhou

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

Exception Source: System.Windows.Forms
Exception Type: System.IndexOutOfRangeException
Exception Message: Index was outside the bounds of the array.
Exception Target Site: Object reference not set to an instance of an object.

---- Stack Trace ----



(Outer Exception)
Date and Time: 4/2/2012 9:51:21 AM
Machine Name: YHOU-DT
IP Address: 172.23.240.71
Current User: MSDOMAIN1\yhou

Application Domain: DefaultDomain
Assembly Codebase: file:///C:/Program Files (x86)/Add-in Express/Add-in Express for .NET/Bin/Packages/VS2005/AddinExpress.Wizard.dll
Assembly Full Name: AddinExpress.Wizard, Version=6.6.3059.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 6.6.3059.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: 4/2/2012 9:51:21 AM
Machine Name: YHOU-DT
IP Address: 172.23.240.71
Current User: MSDOMAIN1\yhou

Application Domain: DefaultDomain
Assembly Codebase: file:///C:/Program Files (x86)/Add-in Express/Add-in Express for .NET/Bin/Packages/VS2005/AddinExpress.Wizard.dll
Assembly Full Name: AddinExpress.Wizard, Version=6.6.3059.2005, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 6.6.3059.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 02 Apr, 2012 09:56:59 Top
Eugene Astafiev


Guest


Hi Bala,

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.

For example, I have found some similar forum threads for you:

http://www.add-in-express.com/forum/read.php?FID=5&TID=9802
http://www.add-in-express.com/forum/read.php?FID=5&TID=9537
http://www.add-in-express.com/forum/read.php?FID=5&TID=8700
http://www.add-in-express.com/forum/read.php?FID=5&TID=8577
http://www.add-in-express.com/forum/read.php?FID=5&TID=7798
Posted 02 Apr, 2012 10:05:44 Top
Bala Mukund




Posts: 19
Joined: 2011-09-08
I put
this

public AddinModule()
{
Application.EnableVisualStyles();
InitializeComponent();

// Please add any initialization code to the AddinInitialize event handler
AddinInitialize += AddinModuleAddinInitialize;
}
in ctor, but even if I move Application.EnableVisualStyles(); to addinInitialize event handler, still get the same exception
what else could it be? thanks
Posted 02 Apr, 2012 10:34:03 Top
Bala Mukund




Posts: 19
Joined: 2011-09-08
Thank you. I resolved the error. There is an exception in addinmodule which was caused by manaully add an image to imagelist. I re-add image in designer now it works fine. thanks
Posted 02 Apr, 2012 13:14:14 Top
Eugene Astafiev


Guest


You are welcome, Bala!
Posted 03 Apr, 2012 03:12:20 Top