Unable to create specified ActiveX control

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

Unable to create specified ActiveX control
 
Sean Devenish




Posts: 78
Joined: 2015-11-30
We installed our addin on a client server running Excel 2010. Our addin use a custom task pane, but on Excel startup the following exception is fired by our addin within Excel:

Application Domain: <OurDomain>
Assembly Codebase: file:///C:/Windows/Microsoft.NET/Frameowrk/v4.0.30319/mscorlib.dll
Assembly Full Name: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Assembly Version: 4.0.0.0

Exception Source:
Exception Type: System.Runtime.InteropServices.COMException
Exception MEssage: Unable to create specified ACtiveX control.
Exception Target Site: ForwardCallToInvokeMember

---- Stack Trace ----
System.RuntimType.ForwardCallToInvokeMember(memberName As String, flags As Binding Flags, target as Object, aWrapper...
mscorlib.dll: N 0200 (0xC8) IL
AddinExpress.MSO.ICTPFactory.CreateCTP(CTPAxID As String, CTPParentWindow As Object)
mscorlib.dll: N 00000 (0x0) JIT
AddinExpress.MSO.ADXAddinModule.AddCustomTaskPanes(parent As Object, outlookFolderName As String)
mscorlib.dll: N 0000 (0x0) IL


We have imlemented a custom task pane in the addin module, excerpts as follows:
public ADXTaskPane mainTaskPane;
this.mainTaskPane = new AddinExpress.MSO.ADXTaskPane(this.components);

//
// mainTaskPane
//
this.mainTaskPane.ControlProgID = "Workpapers.Next.Views.MainItemPane";
this.mainTaskPane.DockPositionRestrict = AddinExpress.MSO.ADXCTPDockPositionRestrict.ctpDockPositionRestrictNoHorizontal;
this.mainTaskPane.OutlookWindows = AddinExpress.MSO.ADXCTPOutlookWindow.olNone;
this.mainTaskPane.SupportedApps = AddinExpress.MSO.ADXOfficeHostApp.ohaExcel;
this.mainTaskPane.Title = "HowNow Smart Workpapers";
this.mainTaskPane.Visible = false;
this.mainTaskPane.Width = 300;


Any assistance with this would be appreciated! We use the latest version of add-in express and the adx loader for our addin.

Kind regards,


Sean
Posted 14 Dec, 2015 22:32:45 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Sean,

Could you please check if the value specified in the ControlProgID property is correct? You can click the designer surface of the add-in module and check suggested values in the ControlProgID property.


Andrei Smolin
Add-in Express Team Leader
Posted 15 Dec, 2015 03:52:11 Top
Sean Devenish




Posts: 78
Joined: 2015-11-30
Hi,

the control does not appear in the Design editor view of AddinModule.cs?
Posted 15 Dec, 2015 07:14:16 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
My bad. Click the design surface, open the editor of the Task Panes property in the Properties window, select the corresponding Task Pane item and check its ControlProgId.


Andrei Smolin
Add-in Express Team Leader
Posted 15 Dec, 2015 07:36:26 Top
Sean Devenish




Posts: 78
Joined: 2015-11-30
Hi Andrei,

the mainTaskPane has a ControlProgID of Workpapers.NExt.Views.MainItemPane which corresponds with the first item in the drop down list.
Posted 15 Dec, 2015 17:51:47 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Sean,

Would the exception persist if you add a new UserControl to your project and specify the UserControl in the ControlProgId property of the corresponding ADXTaskPane object?


Andrei Smolin
Add-in Express Team Leader
Posted 16 Dec, 2015 03:10:57 Top
Sean Devenish




Posts: 78
Joined: 2015-11-30
We can't easily test the exception as it is occurring on client terminal servers where we have limited access (other than getting screenshots of the error!).

However, we do know that the error only occurs when a regular TS user opens Excel where we have done an install as ADMINISTRATOR (for all users) on the admin account for that server. For installs as USER to the users local folder the exception does not fire. Does this help?
Posted 16 Dec, 2015 23:38:23 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Could you please re-install the add-in for all users and show me adxregistrator.log?


Andrei Smolin
Add-in Express Team Leader
Posted 17 Dec, 2015 09:54:20 Top