tags:

views:

58

answers:

0

hello,

I have written a vsto addin with VS 2005 for excel 2007. This addin is able to add XLL files to addin list.

That works fine in excel 2007 but in excel 2010, i have

"Attempt to read or write protected memory"

on this call :

this.Application.AddIns.Add(aAddInFullPath, Missing.Value);

I have checked that aAddInFullPath is ok.

here is stack trace

Exception rethrown at [0]: 
   à System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   à System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   à Microsoft.Office.Interop.Excel.AddIns.Add(String Filename, Object CopyFile)

If I add the xll file manually, it works fine.

thank you for your help.