Windows error 0x80010108, -2147417848

Detailed Error Information

RPC_E_DISCONNECTED[1]

MessageThe object invoked has disconnected from its clients.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode1 (0x001)
NameFACILITY_RPC[2][1]
DescriptionThe source of the error code is an RPC subsystem.[2][1]
Error Code264 (0x0108)

Questions

12votes
1answer

PowerShell - InternetExplorer: 0x80010108 (RPC_E_DISCONNECTED)

I want to automate the InternetExplorer with PowerShell to open a site in our intranet (trusted sites | protected mode: off) When I´m executing my code the IE open the intranet site but the reference to the $ie object is lost. Error:The object invoked has disconnected from its clients. (Exception [...] read more
internet-explorer
powershell
5votes
0answers

Debug Visual Studio native test project

I'm using Visual Studio 2015 Native Test Project for testing my C++ project. Is there any way how to see order of tests execution when debugging tests? Or any detailed debugging information? I would like to use Visual Studio online for continuous integration, but there is some issue with my [...] read more
c++
visual-studio
unit-testing
visual-studio-2015
3votes
0answers

Error: DisconnectedContext was Detected in asp.net C#

I am facing a problem while uploading an excel sheet using oledb. Couple of weeks ago, it was working perfectly so I moved to different module. But when I am testing and debugging the application now it is throwing an error. Someone please look into this as I am not [...] read more
c#
asp.net
3votes
2answers

Using `InsertFile` and saving the file from website on IIS

I am trying to add a file on a word document application.Selection.InsertFile(file); But it causes the exception COMException: The document name or path is not valid And then save it document.SaveAs(path); But then I get the exception The object invoked has disconnected from its clients. (Exception HRESULT: 0x80010108 (RPC_E_DISCONNECTED)) The [...] read more
c#
ms-word
ms-office
com-interop
3votes
1answer

Copying Excel worksheets using COM Interop loses cell colors

I have tried various methods of merging worksheets using COM Interop. Here's what I have ended up with (unnecessary code omitted for brevity): public bool CombineWorkBooks(string exportFilePath, IEnumerable<string> filesToMergeFrom, bool deleteRawFiles) { var success = false; Excel.Application xlApp = null; Excel.Workbook mergeToWorkbook = null; Excel.Workbooks mergeToWorkbooks = null; Excel.Sheets mergeToWorksheets [...] read more
c#
.net
excel
com
interop
3votes
2answers

COMException (0x80010108 - RPC_E_DISCONNECTED) When Closing Excel.Workbook

When I run the following code, I get the exception below: ''# NOTE: ExcelApp is a Private main form variable Dim ReportBooks As Excel.Workbooks = ExcelApp.Workbooks Dim ReportBook As Excel.Workbook = ReportBooks.Open(localFilename) Dim ReportSheet As Excel.Worksheet = ReportBook.Sheets("Report") ''# Retreive data from sheet ReleaseCOM(ReportSheet) ReportBook.Close(True) ''# Error raised here ReleaseCOM(ReportBook) [...] read more
vb.net
excel
interop
com-interop
excel-interop
2votes
1answer

CFileDialog delayed crashing

I have added an "Open file" dialog to my dialog-based MFC application. Now, exactly one minute(!) after an open file dialog is closed by pushing either Open or Cancel button my application crashes. While it crashes, the following things are happening in the output: 1) a bunch of Windows threads [...] read more
c++
windows
mfc
2votes
1answer

The object invoked has disconnected from its clients (WatIn)

I am using WatIn to login to web ,i am working with this tool for a long time and never see this error before The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED)) This error appears when i am trying to open browser, i am not [...] read more
c#
.net
watin
2votes
7answers

Detecting if Excel file has been closed

I've spent the past 3 hours trawling the web for answers to no avail, so I hope you can help me. I'm writing an application which automates Excel. The application has an option to "show/hide the excel sheet" so you can look at it, make any final changes and so [...] read more
c#
.net
2votes
1answer

Powershell COM object Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED)

I am trying to use powershell to script some tasks within internet explorer. This involves downloading a file from a website after logging in to the site. I have one working test script, but the same code for the actual site gives me this error: The '=' operator failed: The [...] read more
windows-7
com
powershell
2votes
2answers

End Outlook process as soon as the process is closed programatically?

ProblemRootCause:Unable to get the SelectNamesDialog to display over the GUI when the Outlook application is running. How I tried to solve: I tried triggering an Outlook event by opening and closing a Mailitem and then display the SelectNamesDialog. Now it appears over our GUI. Issue currently faced: Opening and closing [...] read more
c#
outlook
focus
2votes
2answers

What may be the causes of the error 0x80010108 (The object invoked has disconnected from its clients)?

In C++ program the call to method of coclass returns the error 0x80010108 (The object invoked has disconnected from its clients). What may be the causes of that? read more
c++
com
1vote
1answer

(Win Server 2012 R2) Can't enable data deduplication

Windows Server 2012 R2 (Datacentre edition) I cannot enable Data Deduplication. This particular volume previously had data deduplication enabled. Computer was changed from BIOS to UEFI boot, so basically Windows was reinstalled and boot disk has changed. However I get the same error on new volumes that did not previously [...] read more
storage
windows-server-2012-r2
administration
deduplication
storage-spaces
1vote
1answer

Can not marshal interface from main thread into worker thread

INTRODUCTION I am buidling in-proc COM server to be consumed by VB6 client. COM server needs to use blocking function. This means that the VB6 GUI would be blocked until function retrieves the result, which is unacceptable. Therefore I will use the function in a worker thread, and notify the [...] read more
c++
multithreading
com
marshalling
1vote
0answers

error occurred while work with excel files with multi thread

In Asp.net When working with multi threading via Excel Interop using the below code: Public Class ImportService Public Function ImportsFiles(ByVal files as list(Of String)) Dim rowEffect As Integer = 0 For j as Integer=0 to files.Count-1 dim fileAddress=files(j) Dim app As New Application Dim Wbook As Workbook Try Wbook = [...] read more
asp.net
vb.net
multithreading
excel
quartz.net
1vote
0answers

Error Printing Windows 10 Javascript Store App

When printing a larger html page from a Windows Universal Javascript App I get an error most the time. This error happens more frequent as the document size increases (2 pages documents it always happens). My document is fully loaded and displayed correctly into the print preview window (where you [...] read more
javascript
printing
win-universal-app
1vote
1answer

Merging word documents keeping format in VB NET

I am writing a program that is supposed to merge several word documents into one keeping the formatting of each document. After some research on the web wrote a version that is supposed to work, which is the following: Public Sub processmodulestest(ByVal id As Integer) Dim oMissing = System.Reflection.Missing.Value Dim [...] read more
vb.net
ms-word
ms-office
1vote
2answers

"Managed Debugging Assistant DisconnectedContext" error on async call in unitTest?

I'm trying to do this unit test. The register method is a MVC4 method generated by Microsoft. When i'm debugging on the await call I get this error : I'm having the same error for every async call. [TestMethod] public async Task TestMethodRegister() { AccountController AccountController = new AccountController(); IHttpActionResult [...] read more
c#
asp.net
unit-testing
asynchronous
visual-studio-2015
1vote
0answers

COMException: The object invoked has disconnected from its clients

I have a program written in C# that creates a Word doc by collating a bunch of text (extracted from objects). This application has worked fine for the past 4 years on many different machines, but right now it is breaking for one new client with the following error: > [...] read more
ms-word
interop
rpc
comexception
shdocvw
1vote
1answer

Automation of IE using VBscript 0x80010108 - unknown exception

I'm trying to click on a button on a webpage using VBScript. The rest of my script works just fine. But at different instances of using the browser object I get an exception. The same code works on another script for a different website. Here's my code: Set browser = [...] read more
internet-explorer
exception
vbscript
1vote
0answers

Error Using Datanitro/VBA to Turn Off Screen Updating

I am using Datanitro to build a program that gathers data from a number of workbooks and dumps it into a master workbook. The program is working fine, although it runs slower than I would prefer and every time I run close_wkbk() excel asks me if I want to save [...] read more
datanitro
1vote
1answer

In `method_missing': unknown property or method: `document' (NoMethodError)

Could someone explain what the following error means? E:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/ie-class.rb:488:in `method_missing': unknown property or method: `document' (NoMethodError) HRESULT error code:0x80010108 The object invoked has disconnected from its clients. from E:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/ie-class.rb:488:in `document' from E:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/page-container.rb:31:in `page' from E:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/page-container.rb:55:in `html' from E:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/xpath_locator.rb:7:in `xmlparser_document_object' from E:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/xpath_locator.rb:30:in `elements_by_xpath' from E:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/locator.rb:111:in `locate_elements_by_xpath_css_ole' from E:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/locator.rb:209:in `locate' from E:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/input_elements.rb:5:in [...] read more
ruby
watir
1vote
1answer

C# COM Exception: 0x80010108 (RPC_E_DISCONNECTED))

For some reason I have started to get the below exception in my code after it has been working perfectly for over 6 months. There have been no code changes at all but here is the main bit of the exception: System.Runtime.InteropServices.COMException (0x80010108): The object invoked has disconnected from its [...] read more
c#
excel
exception
com
interop
1vote
3answers

"object invoked has disconnected from its clients" error message is displayed while working with popup windows

I am trying to work with popup windows. I have gone through the site "http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups". I have modified the "ie-class.rb" by adding the code mentioned in the solution #7 of the site. Also I have tried the example mentioned below : require 'watir/ie' require 'win32ole' iewin = Watir::IE.new iewin.goto("http://www.w3schools.com/js/tryit_view.asp?filename=tryjs_confirm") iewin=Watir::IE.attach(:url, [...] read more
watir
0votes
3answers

Client/server application RPC connection gets disconnected very frequently

I have a client/server application that uses RPC for the client to communicate with the server. Fairly regularly, I get an event in the Application log that the RPC connection was disconnected: Client callback failed ((0x80010108) ) I have the Windows Firewall disabled on both machines. I've even run the [...] read more
windows
rpc
client-server
0votes
2answers

C# Microsoft.Office.Interop.Word cant open path with spaces

I'm trying to use Microsoft.Office.Interop.Word to open and resave MS word documents but whenever it runs into a path with spaces it freaks out even if I embed quotes around the string using "\"" + string + "\"" or something like that. Copy pasting the exact path that it outputs [...] read more
c#
ms-word
0votes
0answers

VS 2015 VB debug crashes when viewing an object

I have a solution written in VB (with one C# project), which I am trying to debug in Visual Studio 2015. When I hit a breakpoint and hover over an object, the code crashes with the following error: The program '[18348] MRS.ProductSupport.UI.vshost.exe' has exited with code -2147023895 (0x800703e9). I have [...] read more
vb.net
debugging
visual-studio-2015
0votes
0answers

I have written a C# application to produce tickler letters but can't close the documents without error

I have created a c# application to produce tickler letters. My intent is to have the program create and print the letters then close word without needing any user input. If I use letter1.Close(); an exception is thrown when the second letter is created. If I don't use the close [...] read more
c#
exception
ms-word
0votes
0answers

RPC_E_DISCONNECTED opening Acrobat in .NET

Type AcroExch_App = Type.GetTypeFromProgID("AcroExch.App"); Acrobat.CAcroApp _acroExchApp = (Acrobat.CAcroApp)Activator.CreateInstance(AcroExch_App); I got RPC_E_DISCONNECTED error intermittently in my .NET code when trying to open Acrobat from the code above. The error is > The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED)) My application is running on Windows 7. [...] read more
.net
acrobat
comexception
0votes
1answer

Brokered UWP Component - Administrator privilege

I am trying to use a 3rd party API to print an html file. When I use vendor's SDK in WinForm application, it fails during InternetExplorer operations. (error is below) So I found out that process should run only on "Administrator" privilege. And then, application and print operations work well. [...] read more
c#
uwp
elevated-privileges
0votes
0answers

RPC__E_DISCONNECTED error(0x80010108) while calling a callback aftre 6 mins

I have an issue with my COM application. The Call sequence is as follows. COM client(STA) calls GetData() of a COM dll passing a callback pointer. GetData() has a while loop which takes a long time(more than 6 minutes) COM dll Marshalls the interface and it creates a thread. The [...] read more
c++
com
rpc
0votes
0answers

COM Interop error 0x80010108 (RPC_E_DISCONNECTED) when using winforms

I am using WinForm application to open a new IE browser with height and width and I got below exception: > System.Runtime.InteropServices.COMException (0x80010108): The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED)) And the code it seems to be referencing: [DllImport("User32.dll")] public static extern Int32 SetForegroundWindow(int [...] read more
c#
winforms
internet-explorer
0votes
1answer

UWP - Platform::DisconnectedException while navigating between pages

I've got the following setup: A MainPage xaml-view and a SettingPage xaml-view. In the SettingPage xaml-view I activated the back button which is in the window title bar and I added a BackRequestedEventArgs. (Furthermore I have a DX12 xaml page but it is not involved to the navigation yet, so [...] read more
c++
xaml
uwp
navigation
back-button
0votes
1answer

unknown property or method: `readyState' HRESULT error code:0x80010108 The object invoked has disconnected from its clients. (NoMethodError)

unknown property or method: `readyState' HRESULT error code:0x80010108 The object invoked has disconnected from its clients. (NoMethodError) C:/Opt/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-4.3.0/lib/watir-classic/browser.rb:603:in `method_missing' C:/Opt/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-4.3.0/lib/watir-classic/browser.rb:603:in `block in wait' C:/Opt/Ruby/Ruby193/lib/ruby/1.9.1/timeout.rb:69:in `timeout' C:/Opt/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-4.3.0/lib/watir-classic/browser.rb:597:in `wait' C:/Opt/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-4.3.0/lib/watir-classic/container.rb:56:in `wait' C:/Opt/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-4.3.0/lib/watir-classic/container.rb:56:in `wait' C:/Opt/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-4.3.0/lib/watir-classic/element.rb:210:in `block in fire_event' C:/Opt/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-4.3.0/lib/watir-classic/element.rb:489:in `perform_action' C:/Opt/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-4.3.0/lib/watir-classic/element.rb:210:in `fire_event' C:/Jenkins/workspace/UI_Automation_Dev/trunk/Automation/ocelot/lib/ocelot/extensions.rb:400:in `method_missing' I am getting the above error when executing in [...] read more
ruby
watir
watir-classic
0votes
1answer

Excel VBA Application.FileDialog(msoFileDialogSaveAs) fails with 0x80010108

I have a form in Excel VBA. Upon clicking a command button, a file save as dialog is shown to select a path to save the output (which is to be created later). Private Sub HandleBrowseDestination(edtTarget As MSForms.TextBox) If blnEvents <> False Then With Application.FileDialog(msoFileDialogSaveAs) ' Error 0x80010108 .AllowMultiSelect = [...] read more
excel
vba
excel-vba
0votes
0answers

Bing Map throws exception in 'Windows Runtime Component' project

First of all I want to apologize for the English. I'am develop windows 8.1 store app. On C++/CX language. My solution contains several projects. One of projects has the 'Windows Runtime Component' type, and perform geocoding and reverse geocoding. For a geocoding I use 'Bing Maps SDK for Windows 8.1 [...] read more
c++
windows-runtime
windows-store-apps
c++-cx
bing-maps
0votes
1answer

SQL Server 2014 - Restarting Service from SSMS

Just installed a new SQL Server 2014 instance. When I try to restart the sql server instance in SSMS by right-clicking and choosing restart, I get the following error: TITLE: Microsoft SQL Server Management Studio ------------------------------ Unable to restart service MSSQL$SQLSERVER on server SQLSERVER. (mscorlib) ------------------------------ ADDITIONAL INFORMATION: The object [...] read more
sql-server
sql-server-2014
0votes
0answers

PowerShell - "Click" an HTML input element with type "submit"

I'm looking at a webpage with an input of type "submit": <input name="loginForm:j_idt56:loginButton" id="loginForm:j_idt56:loginButton" onclick="this.style.display='none'; document.getElementById('euLoginButDis').style.display='inline';" type="submit" value="Login"> I would like to use PowerShell to "click" this input. My script looks like: $username = "USERNAME" $password = "PASSWORD" $ie = New-Object -com InternetExplorer.Application $ie.visible=$true $ie.navigate("URL") while($ie.ReadyState -ne 4) {start-sleep -m [...] read more
javascript
html
powershell
automation
0votes
0answers

c# msoffice office error 0x80010108

this code work perfect on win7 + office 2007, but on win8 + office 2013 i got error 0x80010108 RPC_E_DICONNECTED The object invoked has disconnected from its clients. any idea? hello everybody this code work perfect on win7 + office 2007, but on win8 + office 2013 i got error [...] read more
c#
ms-word
ms-office
rpc
0votes
1answer

Unable to read word file in mvc 4

I'm using following code to read word file uploaded on the (local) website. List<string> ReadWordFile(string path) { Application word = new Application(); Document doc = new Document(); ((_Document)doc).Close(); ((_Application)word).Quit(); List<string> data = new List<string>(); try { object fileName = path; // Define an object to pass to the API for [...] read more
asp.net-mvc-4
ms-word
file-read
0votes
1answer

OpenFileDialog window not showing

I have a problem with the OpenFileDialog from Windows Forms (it does not matter if I use is in a console application, win forms or wpf) (C#). I have a small test project with a button that, when pressed, will ask the user to select an image (using OpenFileDialog) and [...] read more
c#
c++
wpf
openfiledialog
0votes
1answer

The vb.net code stucks at While WebBrowser1.ReadyState <> WebBrowserReadyState.Complete

I am developing an application in vb.net which fetches some information from the system and then update the details collected to a ready made webpage. I am using the InternetExplorer object for the same. Please find the code below. Dim WebBrowser1 As Object = CreateObject("InternetExplorer.Application") Private Sub Button1_Click(sender As System.Object, [...] read more
vb.net
0votes
1answer

Login into a Website via PowerShell

I am trying to login into a website via powershell ISE. The Web page comes up but it doesn't enter the credentials. $username = "DSmith" $password = "Password123" $ie = New-Object -com InternetExplorer.Application $ie.visible=$false $ie.navigate("https://feedback.camdenccg.nhs.uk/acl_users/credentials_cookie_auth/require_login? came_from=https%3A//feedback.camdenccg.nhs.uk/james-wigg-and-queens-crescent-practices/4ef32a4e/download_responses%3Foverride-query%3DTrue") while($ie.ReadyState -ne 4) {start-sleep -m 100} $ie.document.getElementById('__ac_name').value= "$username" $ie.document.getElementById('__ac_password').value = "$password" $ie.document.getElementById("loginform").submit() start-sleep 5 [...] read more
powershell
0votes
1answer

Unable to Cast COM Object of type

Language: Powershell Usage: Login into Website Code: (NOTE: Actual values for lines 1., 2., and 4. have not been provided) $username = "User" $password = "Password" $ie = new-object -com "InternetExplorer.Application" $ie.navigate("URL") $ie.visible =$true $doc = $ie.document $doc.getElementByID("username").value=$username $doc.getElementByID("password").value=$password $link = @($doc.getElementsByTagName('A')) | where-object {$_.innerText -eq 'Log In'} $link.click Lines [...] read more
powershell
scripting
0votes
1answer

Perl Excel - Inserting an empty row with row,col numbers from vairable

When trying to insert an empty row using the following code > my $StartRow = "101"; my $StartCol = "1"; $Sheet->Cells($StartRow,$StartCol)->EntireRow->Insert; Error Occurred: Win32::OLE(0.1709) error 0x800a03ec in METHOD/PROPERTYGET "Cells" at 1_SPNV3G_WSS-MGW_1_0_Chicago.pl line 1732. Win32::OLE(0.1709) error 0x80010108: "The object invoked has disconnected from its clients" in METHOD/PROPERTYGET "Close" at 1_SPNV3G_WSS-MGW_1_0_Chicago.pl line [...] read more
perl
excel
ole
win32ole
0votes
1answer

object invoked has disconnected from its clients

I've started getting the following exception while debugging a 32bit MFC C++ app under VS2010 SP1, Windows 7 64. While I can easily ignore it, I'm just wondering what it is. > First-chance exception at 0x751eb9bc in SCCW.exe: 0x80010108: The object invoked has disconnected from its clients. A similar question [...] read more
c++
visual-studio-2010
exception
0votes
1answer

System.Runtime.InteropServices.COMException (0x80010108) when creating an instance of Excel in vb.net 3.5

So, I have a program that launches an instance of Excel. It works on my machine as well as the machines of 2 others, but when my project leader tries it, he gets the following error: System.Runtime.InteropServices.COMException (0x80010108): Creating an instance of the COM component with CLSID {00024500-0000-0000-C000-000000000046} from the [...] read more
.net
vb.net
office-interop
excel-interop
0votes
1answer

COMException Problem

Wondering if anyone could help with my problem. Below is the code, and after the code an explination of where the exception is thrown. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Web; using WatiN.Core; using System.Threading; using System.IO; namespace WindowsFormsApplication1 [...] read more
c#
.net
com

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0