Hi
We have updated our ExcelDNA addin project to the latest version in GitHub
and all seems to have gone well and we can build the project fine but when we
try and debug the project Excel starts then crashes. We are using Excel
Office365 64 bit and our project debug parameters are
Start External Program = C:\Program Files\Microsoft
Office\root\Office16\EXCEL.EXE
Command line arguments = /x "MojitoAddin64.xll"
We see all the files OK in the debug folder and have also trued adding manually
to Excel but it causes the same crash , we have also tried with the packed and
unpacked xll files
In the VS 2022 output Windows we see the info below
We are using .NET Framework 4.8
Any help appreciated
Steve
VS 2022 output
'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:\Users\spric\source\repos\Mojito2\Mojito\MojitoAddin\bin\Debug\MojitoAddin64.xll): Loaded 'ExcelDna.ManagedHost'. 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:\Users\spric\source\repos\Mojito2\Mojito\MojitoAddin\bin\Debug\MojitoAddin64.xll): Unloaded 'ExcelDna.ManagedHost'
'EXCEL.EXE' (CLR v4.0.30319: FullTrustSandbox(Excel-DNA: C:\Users\spric\source\repos\Mojito2\Mojito\MojitoAddin\bin\Debug\MojitoAddin64.xll)): Loaded 'ExcelDna.ManagedHost'. 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:\Users\spric\source\repos\Mojito2\Mojito\MojitoAddin\bin\Debug\MojitoAddin64.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:\Users\spric\source\repos\Mojito2\Mojito\MojitoAddin\bin\Debug\MojitoAddin64.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:\Users\spric\source\repos\Mojito2\Mojito\MojitoAddin\bin\Debug\MojitoAddin64.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:\Users\spric\source\repos\Mojito2\Mojito\MojitoAddin\bin\Debug\MojitoAddin64.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:\Users\spric\source\repos\Mojito2\Mojito\MojitoAddin\bin\Debug\MojitoAddin64.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:\Users\spric\source\repos\Mojito2\Mojito\MojitoAddin\bin\Debug\MojitoAddin64.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.
The program '[22684] EXCEL.EXE' has exited with code 255 (0xff).