|
KristianG
Posts: 39
Joined: 2011-11-03
|
I have an Add-in in which I have a Custom Task Pane. The Add-in runs fine, but when I create the installer using the Add-In Express menu command and then try and run the installer on a system. It throws following exception...
Detailed technical information follows:
---
Date and Time: 8/5/2016 12:29:52 PM
Machine Name: UMAIR-ASIM
IP Address: fe80::4561:8a69:8b75:bb4%22
Current User: SYNERGY\Umair.asim
Application Domain: C:\Users\Umair.asim\AppData\Local\Optimentor\Proofix\
Assembly Codebase: file:///C:/Windows/Microsoft.NET/Framework64/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, showError As Boolean)
mscorlib.dll: N 0655 (0x28F) IL
Can you tell me what I am missing here ?
The setup is a wix setup... |
|
Posted 05 Aug, 2016 02:43:18
|
|
Top
|
|
Andrei Smolin
Add-in Express team
Posts: 18829
Joined: 2006-05-11
|
Hello Kristian,
Make sure you've specified a correct name in the ADXTaskPane.ControlProgId property. Does any problem show itself in adxloader.log or adxregistrator.log?
Andrei Smolin
Add-in Express Team Leader |
|
Posted 05 Aug, 2016 04:49:50
|
|
Top
|
|
KristianG
Posts: 39
Joined: 2011-11-03
|
I mentioned earlier that the Add-In runs fine, when we run it from Visual Studio, but when I create an installer and then install and run it. It won't work... |
|
Posted 05 Aug, 2016 05:18:08
|
|
Top
|
|
Andrei Smolin
Add-in Express team
Posts: 18829
Joined: 2006-05-11
|
Ah, that's my fault. Please forgive me.
Is that ProgID registered with HKCU or HKLM? In the 32bit or 64 bit registry? What is the bitness of your Office application?
Andrei Smolin
Add-in Express Team Leader |
|
Posted 05 Aug, 2016 10:22:24
|
|
Top
|
|
KristianG
Posts: 39
Joined: 2011-11-03
|
I have not modified the setup in any way to add any registry keys, because I created that setup using the Add-in Express menu. What do you mean by "bitness". If you mean 32 bit or 64 bit. I have created the installer under "x86", which is default... |
|
Posted 07 Aug, 2016 23:53:57
|
|
Top
|
|
KristianG
Posts: 39
Joined: 2011-11-03
|
Do I need to manually add registry keys for the Class ID ? or just modify the setup using some builtin command ? I am trying using RegAsm.exe, but am unable to get any value from WIX Property [NETFRAMEWORK40FULLINSTALLROOTDIR] . Can you guide me a bit of where I am wrong ? |
|
Posted 09 Aug, 2016 06:15:14
|
|
Top
|
|
Andrei Smolin
Add-in Express team
Posts: 18829
Joined: 2006-05-11
|
Hello Kristian,
I would like to access your PC remotely. Is this possible? If yes, I suggest using TeamViewer; in this case you'll need to send me your session ID and password to the support email address; see {Add-in Express installation folder}\readme.txt. Please make sure your email contains a link to this topic.
Andrei Smolin
Add-in Express Team Leader |
|
Posted 09 Aug, 2016 06:19:10
|
|
Top
|
|
KristianG
Posts: 39
Joined: 2011-11-03
|
After a long discussion with Andrei and a remote Login using TeamViewer. Andrei was able to find out the exact issue.
The issue was that my User Control was in a separate assembly and although I had made that User Control to be ComVisible, I still had to add custom actions for the assembly which was hosting my user control.
When Add-in Express creates the setup, it adds the Custom Actions for the Add-in Project only. I think there should be a wiki/docs article for this on Add-in Express as well as others might face the same issue on their machines. |
|
Posted 10 Aug, 2016 23:28:36
|
|
Top
|
|
Andrei Smolin
Add-in Express team
Posts: 18829
Joined: 2006-05-11
|
Hello Kristian,
Thank you for the comment.
To All. The custom action in question was adxregistrator.exe. We will provide a description of how to handle such a scenario in the manual.
Andrei Smolin
Add-in Express Team Leader |
|
Posted 11 Aug, 2016 03:37:17
|
|
Top
|
|