ExcelDna icon indicating copy to clipboard operation
ExcelDna copied to clipboard

Problem with RTD registration when inserting formula from JavaScript add-in

Open govert opened this issue 4 years ago • 0 comments

From: https://stackoverflow.com/questions/64313978/excel-crash-while-trying-to-insert-vsto-addin-formula-from-office-js-taskpane

I am facing an odd issue while connecting VSTO (Excel-DNA?) addin formula with office js taskpane. Below is the scenario

There is one VSTO (Excel-DNA?) addin which has several formulas defined in it. One newly created office js taskpnae has included as new product and we are trying to use existing formula from the VSTO (Excel-DNA?) addin. But while inserting any formula from office js to sheet excel is getting crashed. we are returning values from the formula as below

return ExcelAsyncUtil.Observe( "ABC", new object[] { parameters }, () => Methoddetails).ToExcelObservable());

We can see the log as below also

2020-10-10 07:26:36.5178 [ERROR] [T:1] - The RTD server of type ExcelDna.Integration.Rtd.ExcelObserverRtdServer required by add-in addinname could not be registered. This is an unexpected error. Error message: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

govert avatar Dec 02 '20 21:12 govert