My setup project failed to register my toolbar DLL

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

My setup project failed to register my toolbar DLL
the DLL isn't registered correctly when I use a setup orject instead of register ma project via VS2010 
Giacopino cyril




Posts: 8
Joined: 2010-03-31
Hi,

This error occured when I install my toolbar via a setup project, when I use right-click and "Register ADX project" it works fine.
Can you help me, I have a shipping date for tomorrow.....

Tks a lot!

Here's the error LOG :

-----------------------------------------------------------------------------------------------------------------------------------
Assembly Codebase: file:///C:/Windows/assembly/GAC_MSIL/AddinExpress.IE/6.1.368.0__4416dd98f0861965/AddinExpress.IE.dll
Assembly Full Name: AddinExpress.IE, Version=6.1.368.0, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 6.1.368.0
Assembly Build Date: 02/03/2010 10:04:02

Exception Source: System.Windows.Forms
Exception Type: System.Threading.ThreadStateException
Exception Message: ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.
Exception Target Site: .ctor

---- Stack Trace ----
System.Windows.Forms.WebBrowserBase..ctor(clsidString As String)
AddinExpress.IE.dll: N 0074 (0x4A) IL
System.Windows.Forms.WebBrowser..ctor()
AddinExpress.IE.dll: N 0011 (0xB) IL
Tequila.messenger.toolbar.FloatingForm.InitializeComponent()
AddinExpress.IE.dll: N 0017 (0x11) IL
Tequila.messenger.toolbar.FloatingForm..ctor()
AddinExpress.IE.dll: N 0015 (0xF) IL
Tequila.messenger.toolbar.Tequila_messenger_toolbar..ctor()
AddinExpress.IE.dll: N 0046 (0x2E) IL
Posted 31 Mar, 2010 08:29:47 Top
Eugene Astafiev


Guest


Hi Giacopino,

The cause of the issue lies in the code of add-on (see the stack trace of the exception). Can you reproduce the issue with a newly created clear add-on?
Posted 31 Mar, 2010 09:29:39 Top
Giacopino cyril




Posts: 8
Joined: 2010-03-31
Hi,

I created a new Toolbar project, I just put a WebBrowser object on my toolbar with the designer.
When I create a project setup and install it, I've also the same error :

Application Domain: C:\Program Files\Default Company\MyIEToolBar1.Test\
Assembly Codebase: file:///C:/Windows/assembly/GAC_MSIL/AddinExpress.IE/6.1.368.0__4416dd98f0861965/AddinExpress.IE.dll
Assembly Full Name: AddinExpress.IE, Version=6.1.368.0, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 6.1.368.0
Assembly Build Date: 02/03/2010 10:04:02

Exception Source: System.Windows.Forms
Exception Type: System.Threading.ThreadStateException
Exception Message: ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.
Exception Target Site: .ctor

---- Stack Trace ----
System.Windows.Forms.WebBrowserBase..ctor(clsidString As String)
AddinExpress.IE.dll: N 0074 (0x4A) IL
System.Windows.Forms.WebBrowser..ctor()
AddinExpress.IE.dll: N 0011 (0xB) IL
MyIEToolBar1.Test.IEToolbarModule.InitializeComponent()
AddinExpress.IE.dll: N 0001 (0x1) IL
MyIEToolBar1.Test.IEToolbarModule..ctor()
AddinExpress.IE.dll: N 0008 (0x8) IL

Can you help me to fix that, I need to ship the MSI today....
Posted 01 Apr, 2010 03:49:51 Top
Giacopino cyril




Posts: 8
Joined: 2010-03-31
Hi,

I created a new Toolbar project, I just put a WebBrowser object on my toolbar with the designer.
When I create a project setup and install it, I've also the same error :

Application Domain: C:\Program Files\Default Company\MyIEToolBar1.Test\
Assembly Codebase: file:///C:/Windows/assembly/GAC_MSIL/AddinExpress.IE/6.1.368.0__4416dd98f0861965/AddinExpress.IE.dll
Assembly Full Name: AddinExpress.IE, Version=6.1.368.0, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 6.1.368.0
Assembly Build Date: 02/03/2010 10:04:02

Exception Source: System.Windows.Forms
Exception Type: System.Threading.ThreadStateException
Exception Message: ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.
Exception Target Site: .ctor

---- Stack Trace ----
System.Windows.Forms.WebBrowserBase..ctor(clsidString As String)
AddinExpress.IE.dll: N 0074 (0x4A) IL
System.Windows.Forms.WebBrowser..ctor()
AddinExpress.IE.dll: N 0011 (0xB) IL
MyIEToolBar1.Test.IEToolbarModule.InitializeComponent()
AddinExpress.IE.dll: N 0001 (0x1) IL
MyIEToolBar1.Test.IEToolbarModule..ctor()
AddinExpress.IE.dll: N 0008 (0x8) IL

Can you help me to fix that, I need to ship the MSI today....
Posted 01 Apr, 2010 03:58:16 Top
Giacopino cyril




Posts: 8
Joined: 2010-03-31
I've found a solution, I dont' add directly my webBrowser object on the toolbar, but I insert a Form with a webBrowser object inside.

And now it's works.
Posted 01 Apr, 2010 05:42:04 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hi Giacopino,

Thank you very much for letting us know.


Andrei Smolin
Add-in Express Team Leader
Posted 01 Apr, 2010 06:04:13 Top