Get exception when create setup project

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

Get exception when create setup project
 
Beary Woo




Posts: 1
Joined: 2016-12-20
Hi Team,

We got the error message when create setup project as below



Detailed technical information follows: 
---
Date and Time:         12/19/2016 11:25:25 PM
Machine Name:          DESKTOP-BV1SOT7
IP Address:            fe80::1ca9:330c:48f0:4f39%2
Current User:          DESKTOP-BV1SOT7Admin

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=8.4.4395.0, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version:      8.4.4395.0

Exception Source:      AddinExpress.Wizard
Exception Type:        System.NullReferenceException
Exception Message:     Object reference not set to an instance of an object.
Exception Target Site: CreateSetupProject

---- Stack Trace ----
   AddinExpress.SetupWizard.SetupWizardForm.CreateSetupProject(primaryOutputPath As String)
       AddinExpress.Wizard.dll: N 0670 (0x29E) IL 
   AddinExpress.SetupWizard.SetupWizardForm.CreateSetupProject(project As Project, targetFramework As UInt32, serviceProvider As IServiceProvider)
       AddinExpress.Wizard.dll: N 0127 (0x7F) IL 
   AddinExpress.Wizard.ADXPackage.Exec(guidCmdGroup As Guid&, cmdID As UInt32, nCmdexecopt As UInt32, pvaIn As IntPtr, pvaOut As IntPtr)
       AddinExpress.Wizard.dll: N 1076 (0x434) IL 



User added an image
User added an image
User added an image
User added an image
Posted 20 Dec, 2016 03:14:36 Top
Andrei Smolin


Add-in Express team


Posts: 14094
Joined: 2006-05-11
Hello Beary,

It looks like you have custom code in the constructor of the add-in module; that code breaks and this causes the issue. Try to comment out such code or move it to an event of the add-in module (best candidates are the AddinInitialize or OnRibbonBeforeCreate events) and let me know if this helps. The same applies to initializers of complex-type variables declared on the class level in the add-in module. Say, if you have

SomeType someVar = null;


you need to replace it with

SomeType someVar;


and initialize this variable in an above-mentioned event.

Please let me know if this helps.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 20 Dec, 2016 05:13:43 Top