Com Add-in won't register from Visual Studio

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

Com Add-in won't register from Visual Studio
 
Subscribe
Michael Benowitz




Posts: 32
Joined: 2017-02-03
Hello,

I'm using Visual Studio 2017 with office 2016 and Add-In Express 9.2.4635.

From Visual Studio I register my com add-in but it doesn't show in excel. I turned on logging, but it's not creating a log for my com addition. If I turn off logging and try to manually add it I get the message unspecified error.

Any guidance would be appreciated.

Thanks,

Mike
Posted 23 May, 2019 14:16:14 Top
Andrei Smolin


Add-in Express team


Posts: 16098
Joined: 2006-05-11
Hello Mike,

A newly created add-in creates this log file: {user profile}\AppData\Local\Temp\<ProductName>\adxloader.log; the ProductName part reflects the ProductName field of AssemblyInfo.cs (AssemblyInfo.vb). Please check that location.

Does registering your add-in produce any warnings or errors in the Output window?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 24 May, 2019 05:46:33 Top
Michael Benowitz




Posts: 32
Joined: 2017-02-03
I can't seem to get logging to work here's my log.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<loaderSettings generateLogFile="true" />
</configuration>

also here is debug output


'EXCEL.EXE' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Cannot find or open the PDB file.
'EXCEL.EXE' (CLR v4.0.30319: Domain 2): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Cannot find or open the PDB file.
'EXCEL.EXE' (CLR v4.0.30319: C:\DEV14\_FUNDEZ\FEZXL\FUNDEZ14.XLFX\bin\Debug\): Loaded 'C:\DEV14\_FUNDEZ\FEZXL\FUNDEZ14.XLFX\bin\Debug\FUNDEZ14.XLFX.dll'. Symbols loaded.
'EXCEL.EXE' (CLR v4.0.30319: C:\DEV14\_FUNDEZ\FEZXL\FUNDEZ14.XLFX\bin\Debug\): Loaded 'C:\windows\assembly\GAC_MSIL\AddinExpress.MSO.2005\9.2.4635.0__4416dd98f0861965\AddinExpress.MSO.2005.dll'. Module was built without symbols.
'EXCEL.EXE' (CLR v4.0.30319: C:\DEV14\_FUNDEZ\FEZXL\FUNDEZ14.XLFX\bin\Debug\): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Cannot find or open the PDB file.
'EXCEL.EXE' (CLR v4.0.30319: C:\DEV14\_FUNDEZ\FEZXL\FUNDEZ14.XLFX\bin\Debug\): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll'. Cannot find or open the PDB file.
'EXCEL.EXE' (CLR v4.0.30319: C:\DEV14\_FUNDEZ\FEZXL\FUNDEZ14.XLFX\bin\Debug\): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Cannot find or open the PDB file.
'EXCEL.EXE' (CLR v4.0.30319: C:\DEV14\_FUNDEZ\FEZXL\FUNDEZ14.XLFX\bin\Debug\): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Cannot find or open the PDB file.
'EXCEL.EXE' (CLR v4.0.30319: C:\DEV14\_FUNDEZ\FEZXL\FUNDEZ14.XLFX\bin\Debug\): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Cannot find or open the PDB file.
'EXCEL.EXE' (CLR v4.0.30319: C:\DEV14\_FUNDEZ\FEZXL\FUNDEZ14.XLFX\bin\Debug\): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Cannot find or open the PDB file.
'EXCEL.EXE' (CLR v4.0.30319: C:\DEV14\_FUNDEZ\FEZXL\FUNDEZ14.XLFX\bin\Debug\): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Cannot find or open the PDB file.
'EXCEL.EXE' (CLR v4.0.30319: C:\DEV14\_FUNDEZ\FEZXL\FUNDEZ14.XLFX\bin\Debug\): Loaded 'FUNDEZ14.XLFX_dynamic'.
'EXCEL.EXE' (CLR v4.0.30319: Domain 3): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Cannot find or open the PDB file.
Exception thrown: 'System.IO.FileNotFoundException' in mscorlib.dll
The program '[5696] EXCEL.EXE' has exited with code 0 (0x0).
Posted 24 May, 2019 11:18:18 Top
Andrei Smolin


Add-in Express team


Posts: 16098
Joined: 2006-05-11
Hello Michael,

The loaderSettings element should be in the adxloader.dll.manifest. Please check section Add-in Express Loader Manifest, see the PDF file in the folder {Add-in Express}\Docs on your development PC.

Does your newly created add-in project produces the log file?

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 27 May, 2019 04:14:53 Top
Michael Benowitz




Posts: 32
Joined: 2017-02-03
This project was moved to a new pc using the latest version of add-in express. it was using an older version of add-in express on the old pc.

Logging doesn't appear to create a file. When I manually enable the add-in from within excel with logging off I get the message Specified file not found.

Thanks,

Mike
Posted 28 May, 2019 12:41:34 Top
Michael Benowitz




Posts: 32
Joined: 2017-02-03
After applying the latest hotfix my issue appears to be resolved.

Thanks for you help.

Mike
Posted 28 May, 2019 13:40:21 Top
Andrei Smolin


Add-in Express team


Posts: 16098
Joined: 2006-05-11
Thank you, Mike!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 29 May, 2019 05:11:27 Top