Hi,
I am in the process of upgrading my 32-bit addin from .NET6 / ExcelDNA 1.6.0 to NET8 / ExcelDNA 1.8.0.
Essentially, I have a "loader addin" that loads another addin dynamically, where the idea is to have the loader addin static and change only for .NET upgrades, and the dynamically loaded addins can change at any time.
I have done the following:
1. Installed .NET8 SDK and desktop runtime 32 and 64 bit
2. Upgraded ExcelDNA from 1.6.0 to 1.8.0
3. Upgraded both my addins from NET6 to NET8
After step 2 everything still works as normal, but after step 3, loading of the dynamically loaded addin fails (the call is XlCall.Excel(XlCall.xlfRegister, xllFile);) with the following error (read via image textreader):
Assertion failed!
Program:
...NameOf-My-Addin.xll
File: ...\ExcelDna.Host\host-.cpp
Line: 64
Expression: load_assembly_and_get_function_pointer !=
nullptr && "Failure: get_dotnet_load_assembly()
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts
(Press Retry to debug the application - JIT must be enabled)
I have looked in host.cpp in Github (master branch, as I dont seem to find a 1.8.0 tag), but I do not get much wiser.
What can be the source of this issue? What more can I investigate on my side?
Thanks in advance
Henrik