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. [...] read more
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
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
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
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
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
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
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 [...] read more
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
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
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
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
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
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
I'm working with .NET Framework 4.8 and NuGet libraries: OpenCvSharp4, OpenCvSharp4.runtime.win, OpenCvSharp4.Windows and I'm trying to code a simple WebcamStreaming class that takes as input a WPF System.Windows.Controls.Image and exposes some Start and Stop methods to show the camera output. I did it, and it works, but there are two [...] read more
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
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
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
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
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
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
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
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
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
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
I'm running Windows 10 version 1709, on a laptop that has been off for a year or more. I turned it on and let it download updates, only to see in update history > Feature update to Windows 10, version 1803 x64 2019-10B (2) Last failed > install attempt on [...] read more
When using msdeploy to deploy an IIS app to a remote server, using the Web Deploy On Demand (tempagent) feature, I am getting this error: ./myApp.deploy.cmd : Error: Unable to get the remote environment variable 'WindowsDirectory' on the computer 'myserver.mydomain.com'. At line:1 char:1 + ./myApp.deploy.cmd /T /M:$target /U:$username /P:$ ... [...] read more
I am trying to modify the below script to be able to search for multiple Excel files that contain macros. The issue I'm having is being able to access password protected files. It is prompting to enter a password for each password protected file. I would like to skip it [...] read more
I created a REST application to IIS in C# which is using an application as a reference (COM+). This application is running in administrator privilage (run as administrator) and my REST application is running on IIS. If I try to use the REST application I always get an error message: [...] read more
In a smaller test program using UIAuotmation and CoInitializeEx(NULL, COINIT_APARTMENTTHREADED) I have no problems running in x64 debug mode in VS2017. On a larger MFC app (x64 debug) that uses AfxOleInit() I get the The object invoked has disconnected from its clients when exiting the app if the UIAutomation object [...] read more
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
A PowerShell script won't iterate through a document to change each hyperlink in the document. The script runs through a document library on SharePoint online and can open each document in the library. Then it should iterate through each document and pull any hyperlinks that it finds and then split [...] read more
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
I have a unit test code that needs to open a page in IE and do something after the document is complete. The page contains redirects and at the end loads Silverlight (we are stuck with it for another year). Here is the code: using System; using System.Threading; using System.Windows.Forms; [...] read more
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
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
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
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
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 [...] read more
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
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
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
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
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
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
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
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
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
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
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 [...] read more
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 [...] read more
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
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