Error loading DLL on debug mode

468 views
Skip to first unread message

José Antônio Fonseca

unread,
Apr 6, 2017, 3:48:52 PM4/6/17
to Excel-DNA
Hi Govert,

    I have been trying out the ExcelDNA and it has been great. While fiddling with my options for reading a range and writing to it I have somehow managed to ruin my debug environment. I have added a reference to the excel 16 interop and removed it afterwards, I dont know if that was what made it all get ruined but after that when loading the default x64 xll i get the following error on the output window of VS 15:

'EXCEL.EXE' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EXCEL.EXE' (CLR v4.0.30319: Domain 2): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EXCEL.EXE' (CLR v4.0.30319: Excel-DNA: C:\PnT\Projetos\ExcelEMS\PnT.RTD\PnT.RTD\bin\Debug\PnT.RTD-AddIn64.xll): Loaded 'ExcelDna.Loader'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EXCEL.EXE' (CLR v4.0.30319: Domain 3): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EXCEL.EXE' (CLR v4.0.30319: Domain 2): Unloaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'
'EXCEL.EXE' (CLR v4.0.30319: Excel-DNA: C:\PnT\Projetos\ExcelEMS\PnT.RTD\PnT.RTD\bin\Debug\PnT.RTD-AddIn64.xll): Unloaded 'ExcelDna.Loader'
'EXCEL.EXE' (CLR v4.0.30319: FullTrustSandbox(Excel-DNA: C:\PnT\Projetos\ExcelEMS\PnT.RTD\PnT.RTD\bin\Debug\PnT.RTD-AddIn64.xll)): Loaded 'ExcelDna.Loader'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EXCEL.EXE' (CLR v4.0.30319: FullTrustSandbox(Excel-DNA: C:\PnT\Projetos\ExcelEMS\PnT.RTD\PnT.RTD\bin\Debug\PnT.RTD-AddIn64.xll)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EXCEL.EXE' (CLR v4.0.30319: FullTrustSandbox(Excel-DNA: C:\PnT\Projetos\ExcelEMS\PnT.RTD\PnT.RTD\bin\Debug\PnT.RTD-AddIn64.xll)): Loaded 'ExcelDna.Integration'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EXCEL.EXE' (CLR v4.0.30319: FullTrustSandbox(Excel-DNA: C:\PnT\Projetos\ExcelEMS\PnT.RTD\PnT.RTD\bin\Debug\PnT.RTD-AddIn64.xll)): Loaded 'Anonymously Hosted DynamicMethods Assembly'.
'EXCEL.EXE' (CLR v4.0.30319: FullTrustSandbox(Excel-DNA: C:\PnT\Projetos\ExcelEMS\PnT.RTD\PnT.RTD\bin\Debug\PnT.RTD-AddIn64.xll)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EXCEL.EXE' (CLR v4.0.30319: FullTrustSandbox(Excel-DNA: C:\PnT\Projetos\ExcelEMS\PnT.RTD\PnT.RTD\bin\Debug\PnT.RTD-AddIn64.xll)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EXCEL.EXE' (CLR v4.0.30319: FullTrustSandbox(Excel-DNA: C:\PnT\Projetos\ExcelEMS\PnT.RTD\PnT.RTD\bin\Debug\PnT.RTD-AddIn64.xll)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EXCEL.EXE' (CLR v4.0.30319: FullTrustSandbox(Excel-DNA: C:\PnT\Projetos\ExcelEMS\PnT.RTD\PnT.RTD\bin\Debug\PnT.RTD-AddIn64.xll)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EXCEL.EXE' (CLR v4.0.30319: FullTrustSandbox(Excel-DNA: C:\PnT\Projetos\ExcelEMS\PnT.RTD\PnT.RTD\bin\Debug\PnT.RTD-AddIn64.xll)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EXCEL.EXE' (CLR v4.0.30319: FullTrustSandbox(Excel-DNA: C:\PnT\Projetos\ExcelEMS\PnT.RTD\PnT.RTD\bin\Debug\PnT.RTD-AddIn64.xll)): Loaded 'PnT.RTD'. Symbols loaded.
'EXCEL.EXE' (CLR v4.0.30319: FullTrustSandbox(Excel-DNA: C:\PnT\Projetos\ExcelEMS\PnT.RTD\PnT.RTD\bin\Debug\PnT.RTD-AddIn64.xll)): Loaded 'C:\PnT\Projetos\ExcelEMS\PnT.RTD\PnT.RTD\bin\Debug\EFCommon.dll'. Symbols loaded.
'EXCEL.EXE' (CLR v4.0.30319: FullTrustSandbox(Excel-DNA: C:\PnT\Projetos\ExcelEMS\PnT.RTD\PnT.RTD\bin\Debug\PnT.RTD-AddIn64.xll)): Loaded 'C:\PnT\Projetos\ExcelEMS\PnT.RTD\PnT.RTD\bin\Debug\Pnt.ProtoBuf.dll'. Symbols loaded.
'EXCEL.EXE' (CLR v4.0.30319: FullTrustSandbox(Excel-DNA: C:\PnT\Projetos\ExcelEMS\PnT.RTD\PnT.RTD\bin\Debug\PnT.RTD-AddIn64.xll)): Loaded 'ExcelDna.DynamicDelegateAssembly'.
ExcelDna.Integration Error: 4 : The Ribbon/COM add-in helper required by add-in PnT.RTD Add-In could not be registered.
This is an unexpected error.
Error details:
'EXCEL.EXE' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EXCEL.EXE' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EXCEL.EXE' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EXCEL.EXE' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EXCEL.EXE' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EXCEL.EXE' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EXCEL.EXE' (CLR v4.0.30319: FullTrustSandbox(Excel-DNA: C:\PnT\Projetos\ExcelEMS\PnT.RTD\PnT.RTD\bin\Debug\PnT.RTD-AddIn64.xll)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll'. Cannot find or open the PDB file.
'EXCEL.EXE' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll'. Cannot find or open the PDB file.

What am I doing wrong?

thanks in advance.

Govert van Drimmelen

unread,
Apr 6, 2017, 3:54:39 PM4/6/17
to Excel-DNA
Check if you have anything in your Disabled Add-Ins list:
 
    File -> Options -> Add-Ins -> Manage: Disabled Items -> Go

Else there might be some error in the RTD server class.

-Govert

José Antônio Fonseca

unread,
Apr 6, 2017, 4:19:44 PM4/6/17
to Excel-DNA
Right on the money..

Disabled Add-ins.

feeling stupid.

Thank you.
Reply all
Reply to author
Forward
0 new messages