Click here to Skip to main content
Click here to Skip to main content

System.Runtime.InteropServices - An approach to debugging for COMException (0x80010108)

By , 25 Dec 2011
Rate this:
Please Sign up or sign in to vote.
I got this error using Office automation:
 
System.Runtime.InteropServices.COMException (0x80010108): The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED)),

 
It can be nasty to debug.
 
One strategy to address this error is to see if an event has occurred to interrupt the Office application running under automation.
 
I traced my problem to a Word macro I was running from a Visual Basic program. I did not notice that the macro caused Word to exit. Once Word shut down, the automation couldn't continue and I got the error that the "object invoked has disconnected."
 
The solution was to edit the macro so it ran without shutting down Word.
 
Perhaps this will help someone.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Dhruva Hein

United States United States
No Biography provided

Comments and Discussions

 
-- There are no messages in this forum --
| Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 25 Dec 2011
Article Copyright 2011 by Dhruva Hein
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid