New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COM object that has been separated from its underlying RCW cannot be used. #713

bovender opened this Issue Aug 24, 2018 · 0 comments


None yet
1 participant
Copy link

bovender commented Aug 24, 2018

This issue was submitted by the add-in's exception handler.


System.Runtime.InteropServices.InvalidComObjectException: COM object that has been separated from its underlying RCW cannot be used.
   at System.Dynamic.ComObject.CreateComObject(Object rcw)
   at System.Dynamic.ComObject.ObjectToComObject(Object rcw)
   at CallSite.Target(Closure , CallSite , Object , String )
   at XLToolbox.Excel.ViewModels.SheetViewModel.set_DisplayString(String value) in XLToolbox\Excel\ViewModels\SheetViewModel.cs:line 78
   at XLToolbox.Excel.ViewModels.WorkbookViewModel.ConfirmRenameSheet(StringMessageContent stringMessage) in XLToolbox\Excel\ViewModels\WorkbookViewModel.cs:line 669
   at XLToolbox.Excel.ViewModels.WorkbookViewModel.<DoRenameSheet>b__56(StringMessageContent stringMessage) in XLToolbox\Excel\ViewModels\WorkbookViewModel.cs:line 659
   at Bovender.Mvvm.Messaging.Message`1.<>c__DisplayClass2.<Send>b__0()
   at Bovender.Mvvm.Actions.MessageActionBase.<>c__DisplayClass9`1.<Invoke>b__6(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at Bovender.Mvvm.ViewModels.ViewModelBase.DoCloseView()
   at Bovender.Mvvm.Messaging.MessageContent.DoConfirm()
   at Bovender.Mvvm.Messaging.MessageContent.<get_ConfirmCommand>b__18(Object param)
   at Bovender.Mvvm.DelegatingCommand.Execute(Object parameter)

Message: COM object that has been separated from its underlying RCW cannot be used.


Parameter Value
Version 7.2.13
OS Microsoft Windows NT 6.1.7601 Service Pack 1, 32-bit
Excel 365 (16.0.10325), 32-bit
CLR 4.0.30319.42000, 32-bit
VSTO runtime 10.0.60828
ClickOnce False
FreeImage 3.16.0
Identifier 90b2b34812145f5e78589989c46102c616f2cd726a640dbfb8f907ca2ae750e1

@bovender bovender self-assigned this Aug 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment