Updated my NuGet Packages from 1.7 to 1.9.2-beta, now I am gettting an error

109 views
Skip to first unread message

Rand Random

unread,
May 5, 2025, 11:14:10 AM5/5/25
to Excel-DNA
On the line


var x = ExcelDnaUtil.Application;

I am getting the error

Cannot find the interop type that matches the embedded interop type 'Microsoft.Office.Interop.Excel.Application'. Are you missing an assembly reference?

what am I doing wrong?

Govert van Drimmelen

unread,
May 5, 2025, 2:38:04 PM5/5/25
to Excel-DNA
That error is unexpected, but we did do some refactoring that changed the return type to reflect the real COM interface.

I think this would be fixed if you add a reference to the "ExcelDna.Interop" NuGet package.

-Govert

Rand Random

unread,
May 6, 2025, 8:36:19 AM5/6/25
to Excel-DNA
Added the mentioned NuGet package, but temporarily I got these different errors

The "LoadFromBytes" parameter is not supported by the "CreateExcelAddIn" task loaded from assembly: ExcelDna.AddIn.Tasks, Version=1.1.0.0, Culture=neutral, PublicKeyToken=f225e9659857edbe from the path: xxx\exceldna.addin\1.8.0\tools\net452\ExcelDna.AddIn.Tasks.dll. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.

The "CreateExcelAddIn" task could not be initialized with its input parameters.

Since the error message said version "1.8.0" I believe there was just some cache issue, from me playing around with the different versions, and a re-build solved the issue.

So thanks, yes adding the ExcelDna.Interop NuGet package did solve the problem.
Reply all
Reply to author
Forward
0 new messages