Joseph menter
Posts: 27
Joined: 2005-05-30
|
You may have already found and fixed this in 2.2, I just bought and downloaded the current released version 2.1.?...
I was receiving this error when installing my add-in on a clean computer that just had Office installed:
mscorlib: "AddinModule error: the add-in has fired an exception. No such interface supported"
Of course, this didn't occur on my developement machine...
After tracing through my code and determining that it wasn't a problem there, I took a look through the AddinExpress source code and found the problem in the routine ADXAddinModule.cs 'Extensibility.IDTExtensibility2.OnStartupComplete()'
A check is made to see if the application running is "Excel" and if so exits the routine. Unfortunately 'applicationname' hasn't been set yet, the routine that sets it gets called on the next line. I got the error message to go away by moving the SetHostApplication() call to the line before the check for 'Excel'.
|
|
Sergey Grischenko
Add-in Express team
Posts: 7233
Joined: 2004-07-05
|
|
Joseph menter
Posts: 27
Joined: 2005-05-30
|
Sorry - I was a little to quick to post, that wasn't the problem, it was indeed in my addinstartupcomplete code, and changing the source as above causes the toolbar to not be registered in excel... We should probably delete the above message so as to not confuse anyone...
Joe |
|