Excel-DNA / ExcelDna

Excel-DNA - Free and easy .NET for Excel. This repository contains the core Excel-DNA library.
https://excel-dna.net
zlib License
1.26k stars 270 forks source link

Assertion Failed on users machine #654

Closed femimada closed 7 months ago

femimada commented 7 months ago

I am having issues an assertion failure similar to the one here But the underlying issues are different. In my case I am only trying to register one add-in

Assertion failure IMG_4562

here’s the developer’s dotnet version IMG_4564

govert commented 7 months ago

What is the exact Excel-DNA version you are using?

femimada commented 7 months ago

Using version 1.6.0

govert commented 7 months ago

I suggest you try 1.7.0. That should at least give you an error code or better message

govert commented 7 months ago

But I see the problem - the user must have the "WindowsDesktop" version of the .NET 6 runtime installed.

femimada commented 7 months ago

Thank you Govert. I will update the Excel DNA version. Which runtime version is compatible with Excel DNA? My prior understanding is that it is compatible with any .NET 6 runtime.

govert commented 7 months ago

You need the .NET Desktop Runtime of the same bitness (32-bit or 64-bit) as your Excel installation: image

femimada commented 7 months ago

Thank you Govert. Updating the package was helpful - it provided more useful information regarding the error. The issue was ultimately resolved by using the correct .NET runtime.