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
 
zipi sompo




Posts: 125
Joined: 2013-09-03
Hi,
We use listener add in to open Office Word that has Word add in.
As of yesterday, after win 7 update kb4022206, we suddenly recive the following exeption:


Application Domain: C:\Users\User\AppData\Local\Atid S.M\AtidSM.AW.Office\
Assembly Codebase: file:///C:/Windows/Microsoft.NET/Framework/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.RuntimeType.ForwardCallToInvokeMember(memberName As String, flags As BindingFlags, target As Object, aWrapperTypes As Int32[], msgData As MessageData&)
mscorlib.dll: N 0191 (0xBF) IL
AddinExpress.MSO.ICTPFactory.CreateCTP(CTPAxID As String, CTPTitle 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


What can be the reason?
what can we do ?
Thanks!
Posted 12 Jul, 2018 02:25:49 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hello Zipi,

This exception is a result of a problem (exception?) that occurs when Add-in Express creates an instance of the UserControl specified as a custom task pane (in the TaskPanes collection of the add-in module).

I suggest that you debug the constructor of the UserControl as well as initializers of the variables declared on the class level of the task pane class. I recommended not to have such initializers at all; initialize class-level variables in an event of the UserControl e.g. Load.


Andrei Smolin
Add-in Express Team Leader
Posted 12 Jul, 2018 04:27:51 Top