I created a ASP.NET web service that uses a 3rd party payment processing engine to authorize credit card transactions. The web service is hosted on a separate application server and connects to the payment processing server via an ActiveX object (.ocx extension). Lately, it has been generating a HRESULT: 0x80010105 [...] read more
I've written an OCR wrapper library around the Microsoft Office Document Imaging COM API, and in a Console App running locally, it works flawlessly, with every test. Sadly, things start going badly when we attempt to integrate it with a WCF service running as an ASP.Net Web Application, under IIS6. [...] read more
I have a problem when trying to read .csv file with STATCONNECTORSRVLib (R(D)COM). When I enter this code lines, it works: var sc1 = new STATCONNECTORSRVLib.StatConnector(); sc1.Init("R"); sc1.EvaluateNoReturn("dataset=read.csv(file.choose())"); A pop up windows is opened, I choose file from c:\\ , it loads, and I can do calculation with it. However, [...] read more
In my asp.net application I am calling one com component method using Interop dll. This is working fine in normal condition but In production sometimes its throwing below exception System.Runtime.InteropServices.COMException (0x80010105): The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) I am suspecting that this is happening when large [...] read more
We have a C# application that internally invokes excel. It does so using Microsoft.Office.Interop.Excel.dll. The application works on most computers with Excel, but not on mine. Originally, the application was failing with HRESULT 0x800706BE (The remote procedure call failed). I'd tried almost every advice found on the web, but without [...] read more
I'm triying to generate an image from an excel worksheet. After a lot of research, I'm using the following code, but at some point I get an exception: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Office.Interop.Excel; namespace ConsoleApplication1 { class Prueba { [STAThread] static void Main(string[] args) { [...] read more
I'm trying to use System.Windows.Forms.HTMLDocument in a console application. First, is this even possible? If so, how can I load up a page from the web into it? I was trying to use WebBrowser, but it's telling me: > Unhandled Exception: System.Threading.ThreadStateException: ActiveX control > '885 6f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated [...] read more
The simple VB.NET code for opening up an existing Excel file consistently failed at open command with the following error: The remote procedure call failed. (Exception from HRESULT: 0x800706BE) I've searched Stack Overflow and Microsoft sites for this error, it looks like no one has a definitive answer. But one [...] read more
I have this exception that is driving me crazy. When I try to open a .xlsx file this way Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Application(); string v = "path\File.xlsx"; Workbook wb = app.Workbooks.Open(v); //This triggers the exception app.Visible = true; Worksheet sh = wb.Sheets[1]; I have this exception Error: System.Runtime.InteropServices.COMException (0x80010105): [...] read more
I am trying to read data from a file in Excel but for some reason something goes wrong. This is what I am doing: Excel.Application xlApp ; Excel.Workbook xlWorkBook ; Excel.Worksheet xlWorkSheet ; Excel.Range range ; string str; int rCnt ; int cCnt ; int rw = 0; int cl [...] read more
When I try running a SSIS script to update an excel file it always errors on any modifications or save reading the file is ok, this is done in Visual studio 2005 and run on a server. Any ideas. The version of excel Interop is : Microsoft.Office.Interop.Excel - 11.0.0.0 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.office.interop.excel.dll [...] read more
I've got an array I need to populate with references to labels on a display. I've managed to reduce my issue to a MWE below: Private Sub Button1_Released() Me.TestLabel.Caption = "Button1" End Sub Private Sub Button2_Released() Dim o As MSForms.Label Set o = Me.TestLabel o.Caption = "Button2" End Sub The [...] read more
I'm developing a winform that maps XML data to an Excel template file. The XML map is set in the Excel template. Then, I export the Excel to PDF: Application xApp = new Application(); Workbook excelWorkBook = xApp.Workbooks.Open(@"" + ExcelTMPLPath, Type.Missing, false); excelWorkBook.XmlMaps["NewDataSet_Map"].Import(TransXMLFilePath); excelWorkBook.ExportAsFixedFormat(XlFixedFormatType.xlTypePDF, PDFOUTPUTFilePath, XlFixedFormatQuality.xlQualityStandard, true); excelWorkBook.Close(); xApp.Workbooks.Close(); This [...] read more
I have an application which opens an Visio file .VSD and copies some jpeg images onto the VSD file. I am using Visio 2013, it works fine with this version but I have another client machine where I have only exe of this application(not complete code base) and has Visio [...] read more
I have an application (C#) which uses ComInterop to manipulate and print documents from a 3rd Party App (Corel Draw x8). After Updating to Windows 1607 (Anniversary Update), things stop working immediately with creating my object (cdr = new CorelDRAW.Application();), or with the next line (hiding CorelDraw's window) with an [...] read more
I have created an SharePoint- hosted app and using office API’s within the start page. The app is added in exchange and enter image description hereapp web links are referred in appmanifest.xml. 1) On click of link, page renders as expected in OWA every time except for 1st time, following [...] read more
I need to call a Foxpro (VFP 8) COM object from C# The vfp code looks like this: Define Class x2 As session OlePublic Function testInteropServer() ENDFUNC Enddefine The C# code looks like this: [TestFixture] public class TestFixture { [Test] public void TestXtmBase() { xtmbase.x2 xtmBaseX2 = new xtmbase.x2(); xtmBaseX2.testInteropServer(); [...] read more
I have SQL Server 2008 installed locally on Windows 7, The Configuration Manager starts ok but gives me the error "The server threw an exception. [0x80010105]". I have tried running the manager as administrator to no avail. Anybody any ideas? Cheers. read more
After running upgrade Windows 10 to anniversity edition screen in blank. After computer restart windows 10 restores its previous version. Tried two times but problem persists. How to upgrade ? Earlier Windows 10 works OK, all windows 10 uodates are installed. C:\$WINDOWS.~BT\Sources\Panther\setuperr.log contains: 2016-08-06 11:20:32, Error MOUPG CDlpActionImpl<class CDlpErrorImpl<class CDlpObjectInternalImpl<class [...] read more
I am working with zkemkeeper 64 bit. I am having an error When i ccall bool a = axCZKEM1.Connect_Net(IPAddress, Port); axCZKEM1 is my zkemkeeper.CZKEMClass object. The following error i am getting. System.Runtime.InteropServices.COMException: 'The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))' Can you please help me with this ? read more
We created a .NET application that collects data from IBM (Lotus) Notes. It connects to Notes via COM objects (Lotus Domino Objects). In general, it works and do all the operations we need, but then, after some hours of work, the app stops working. I mean, it kinda freezes and [...] read more
What I need Step 1 I need to do an export of all information, whatever the node type, under a main root node (= package). Step 2 Using that export information I need to do a mapping to a JSON contract provided by a third party. Step 3 The third [...] read more
I'm helping a colleague debug a tool he is creating for ArcGis. It is used to create Replicas, and is done through selecting some different inputs from dropdowns in a winform. The issue is that when running all the code on the UI-thread, our ui freezes. This is what he [...] read more
I have never seen this and searched a long time and without an answer, I have a need to connect to SAP B1 9.1 using the SAPbobsCOM.dll to sync user objects between our different instances of SAP. We can use the server name to connect to the local server, but [...] read more
i try to create a chart using values in excel, when i run the code bellow : private void DesignChartInExcel(int nbLigne) { line 1 string fileName = @"C:\Users\LUNA\Documents\lili.xlsx"; line 2 object missing = Type.Missing; line 3 object misValue = System.Reflection.Missing.Value; //create excel line 4 Microsoft.Office.Interop.Excel.Application excel = new Microsoft.Office.Interop.Excel.Application(); //add [...] read more
In Windows 10 Visual Studio Community Edition is used. ASP.NET MVC 4 applications are running from it in Debug Mode using IIS Express installed by Visual Studio. Upgrading to Windows 10 anniversity edition fails with error 0xc1900101 - 0x30018 The installation failed in the FIRST_BOOT phase with an error during [...] read more
This is my code to open multiple excel file to do some calculation based on their content. Imports Microsoft.Office.Core Imports Microsoft.Office.Interop Module Module1 Sub Main() Dim xlApp As Excel.Application Dim wb1 As Excel.Workbook Dim wb As Excel.Workbook Dim w As Excel.Worksheet xlApp = New Excel.Application xlApp.Visible = True wb1 = [...] read more
I am getting this error when I had changed service accounts for the instances in my SQL Server 2012. enter image description here [https://i.stack.imgur.com/zNXBH.png] read more
I have a problem with COM interop from a C# application to an inproc COM server component. I have reduced the problem to a simple c# test program. It instantiates the server component's interop class, sets the value of a string a property on the instance, and then sets another [...] read more
In my application I use Microsoft.Office.Interop.Word library to create .docx file with some content from template. Everything was working correctly on Word 2010 installed (Windows 7/2008 R2) but when I tried it on Windows 8 + Word 2013 I first started to get exception codes: HRESULT: 0x800706BA HRESULT: 0x80010105 The [...] read more
I am trying to connect to HP quality center 11.0 by a windows console application using C# language. I added the reference to the dll OTAClient.dll, and added the namespace reference, using TDAPIOLELib; (Reference to the dll was not happening so i manually registered the dll using the command regsvr32 [...] read more
I am getting below mentioned exception only when I am scheduling my application to run on particular time. "The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))" This does not happen when i run the application manually. This is a Arcgis & .Net based console application. I am using [...] read more
I've run into a problem I just can't seem to solve. The background: Years ago, I developed a web site for one of my customers using ASP 2.0 and Ajax. One function of the web site is to produce customer invoices, on demand. Their in-house production system is written in [...] read more
I'm trying to read a group of Word files in a loop. On the first iteration of the loop, there is never a problem. On the 2nd, 3rd, .. nth iteration, I receive the following error attempting to close the document: The server threw an exception. (exception from hresult: 0x80010105 [...] read more
Is it possible to reuse the com object that I just released with: Marshal.ReleaseComObject(obj) When ever I try the following: dim obj as ObjectType = New ObjectType Marshal.ReleaseComObject(obj) obj = nothing obj = New ObjectType I get the error: COM object that has been separated from its underlying RCW cannot [...] read more
while debugging i got the error like this Attempted to read or write protected memory. This is often an indication that other memory is corrupt. This below error code line works for capture screen and do ocr. But dynamically(Means Multiple time capturing window with certain time limits) changing window capture [...] read more
My company has an application that has some responsiveness/stability/memory issues. I am trying to write a little helper application that can help us identify these issues. I would like this application to be able to generate dumps on command and to do some basic automated debugging, first off I am [...] read more
i'm using an ASP.NET 2.0 app (running in a Windows Server 2003 environment) connection to an informix db using IBM Client Provider. The app work fine and pretty fast but I'm experiencing random oledb connection error like this : > no error message available, result code: -2147417851(0x80010105). > > Stack [...] read more
I'm trying to open an Excel file to get and set some values. Unfortunately, I have no choice, I must to work with Excel. Dim xAp As New Microsoft.Office.Interop.Excel.Application Dim xWkb As Microsoft.Office.Interop.Excel.Workbook xWkb = xAp.Workbooks.Open("c:\uploads\teste.xls") Always I have this exception: (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) Need I Excel installed [...] read more
I am developing a C# Console application, that has nothing to do with the server but it does use a library vcamcomlib which comes with the trial version of e2e vcam. These are my lines of code refByte = File.ReadAllBytes(@"filepath"); vcam.PlayBuffer(ref refByte[0], 640, 480);//Exception comes here My program was running [...] read more
I thought I had a working solution for converting .mdi files to PDF using the Microsoft Office Document Imaging object model. The solution is in a Windows Service, but now I'm running into some errors that I'm having trouble tracking down info on. The exception I get is: > The [...] read more
I'm trying to upgrade an evaluation instance of SQL Server 2008 to a fully licensed instance of SQL Server 2008 R2. I made it most of the way through the installer, but I'm getting stopped at the Upgrade Rules page - the SQL Server Analysis Services Upgrade Service Functional Check [...] read more
I am using System::Runtime::InteropServices::Marshal::GetActiveObject(MyApplication); to initialize my Interop object. When I open two sessions of application and in second session, call the function of interop object, it throws following exception HRESULT 0x80010105: enter image description here [https://i.stack.imgur.com/u4UNd.png] Is there a way I can use interop object in two sessions separately [...] read more
I have received some encrypted mails. I want to store them in an Exchange public folder. The mails shall be stored decrypted so that others can read them without the need for my private key certificate. Using the Outlook GUI it's possible to do so using the Forward action with [...] read more
Please don't comment, that Interop mode from Windows Service is not supported, I know that. :-) I have an Excel file with tables and charts. It runs for several years under Windows Server 2012R2 with Excel 2003 as Windows service in Interop mode without any problems. After changing to Windows [...] read more
Currently for Windows XP and Windows 7 32 bit i am using IJolierDiscMaster COM Interfaces for writing CD. Currently i am migrating the windows application to windows 10. When i try writing CD in windows 10 it is giving exception " System.Runtime.InteropServices.COMException(Ox80010105) : The server threw an exception (Exception from [...] read more
This is an irritating one. I have created a method to copy all Excel charts in a workbook to PowerPoint slides. public int ImportExcelChartsFromWorkbookToSlides(int startingSlideIndex, string workbookPath, string[] slideTitles, int chartPosTop, int chartPosLeft = 10, int titleWidth = 680, int titleHeight = 20, int titlePosTop = 90, int titlePosLeft = [...] read more
I'm struggling to copy an entire worksheet from an existing .XLS file into a new Excel file I'm creating within my application. This is my code so far: Microsoft.Office.Interop.Excel.Workbook tempworkbook = workbooks.Open( Directory.GetCurrentDirectory() + "\\Template.xlsx", //FileName 0, //UpdateLinks true, //ReadOnly 5, //Format Type.Missing, //Password Type.Missing, //WriteResPassword true,//IgnoreReadOnlyRecommended Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, //Origin "\t", [...] read more
I've been trying to save my new word document using SaveAs2 but couldn't resolve the error. This is my code to save file word.Document newdocument = new word.Document(); newdocument = oword.Documents.Add(ref missing, ref missing, ref missing, ref missing); word.Range rng = newdocument.Range(0, 0); rng.Text = "start:\r\r" + content.Value.ToString(); rng.Text += [...] read more
This question was asked by someone else before on this forum but it seems nobody could provide an answer: I have a SSIS 2012 project with about 30 package and they are all using connection managers defined at the project level. These packages are all beeing run from a master [...] read more
I've a problem when I run simple add-on into SAP Business One. I've gotten this exception through this snippet of this code : ' After changing the item quantity If (pVal.ItemUID = "mat") And (pVal.ColUID = "ActQuan") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_VALIDATE) Then Dim oEditPrice As SAPbouiCOM.EditText ' Item Price Dim [...] read more
I been trying to call a VBA function from c# to automate some process, the problem is that when the Excel.Application visibility is false I get this error: > The server threw an exception. (Exception from HRESULT: 0x80010105 > (RPC_E_SERVERFAULT)) When the visibility is true everything works perfectly but the [...] read more
I got a new computer (Dell Latitude with 64 bit Windows 7 Enterprise with Service Pack 1) at work and ever since I have had issues with the following code: Dim eApp as New Excel.Application Dim eBooks as Excel.Workbooks Dim eBook as Excel.Workbook eBooks = eApp.Workbooks eBook = eBooks.Open(fileName) When [...] read more
I've created a VPN Connection program that is capable of sharing VPN connection through ICS (Internet Connection Sharing), for doing this I've used VirtualRouter API. Anyways, VirtualRouter works fine with sharing OpenVPN connection, but when it comes to VPN (PPTP, L2TP etc..) it throws this exception: The server threw an [...] read more
I am trying to write a very simple VB.net app which would open an excel file and save it as excel. The environment I am working on is as follows: * Windows 10 * Visual Studio 2016 * Office 2016 I have successfully managed to open the excel sheet and [...] read more
I need to call a third party c++ exe (that presents an OLE automation interface) from my app. I'd like to be able to run multiple instances of my app concurrently. The third party app I call has the option of running against different databases. If I run multiple instances [...] read more
I am using a COM DLL (type library) created using vfp6 in my MVC 4 application for data manipulation with FoxPro DB data-tables. I can able to register the dll successfully using Regsvr32 and also can able to do references in my project. In my web application i can able [...] read more
when I use Interop to open an Excel file using this code Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Application(); app.Visible = false; Workbook wb = app.Workbooks.Open(ruta,Type.Missing ,false); Worksheet sh = wb.Sheets["Scenarios"]; I got the following error. `An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred Additional information: El servidor lanzó una excepción. (Exception from [...] read more
I registered the Active Reports dll, arpro2.dll using regsvr32 Generating an interop assembly for Active Reports results in a servar fault: Main.cs using System.Diagnostics; using DDActiveReports2; namespace TestActiveReports { internal class Program { private static void Main() { var r = new ActiveReportClass(); r.LoadLayout(@"C:\temp\RPTCUM20F.rpx"); var s = r.Sections; Debug.Assert(s.Count() > [...] read more
I'm receiving the below error message when saving the mail merge document using C#, but while using office 2007. The save method works on versions of office newer than 2007. I receive that error message on the line with this command: _wordApp.ActiveDocument.SaveAs2(string.Format(path + "\\temp\\" + @"MailMerge.docx")); Any assistance would be [...] read more
I am trying to install ASP.NET Core for the first time. Installing dnvm with PowerShell works fine, but downloading dnx fail. When running dnvm upgrade, the process starts out eating a lot of memory (15 GB!) and freezes my computer, the process then fails with the following error message: Determining [...] read more
I am running below code with to convert XLS to CSV but getting strange error. Can someone point me to right direction as to what can be causing this issue? I am using powershell v3.0. not sure what I am missing here. PARAM ( [parameter(Mandatory = $true)] [string] $excelFilePath = [...] read more
Lotus Notes just updated and became IBM Notes 9.0.1 causing code I've written to send an email with an attachment to fail. Here's the code: Public Sub SendNotesMail(ByVal attachment As String, ByVal ToRecipients As List(Of String), ByVal CcRecipients As List(Of String), ByVal saveit As Boolean) 'Set up the objects required [...] read more
using StatConnectorCommonLib; using STATCONNECTORSRVLib; StatConnector rConn = new StatConnector(); rConn.Init("R"); rConn.SetSymbol("n1", 5); rConn.Evaluate("x1<-rnorm(n1)"); var o = rConn.GetSymbol("x1"); foreach (double d in o) { Response.Write(d + "<br />"); } rConn.Close(); The above code works fine because rnorm is an inbuilt R function. I need to call other custom (user-defined) functions written [...] read more
Question: I have to work (in VB.NET) with an application (Aperture)'s OLE automation via COM-Wrapper. Currently, I switch off option strict, and do it like this (using late-binding): Dim m_Aperture As Object = CreateObject("Aperture.Application") Dim m_Project As Object = m_Aperture.Project You see the problem, everything is an object, no intellisense, [...] read more
Trying to understand and diagnose what is wrong with my Excel setup on a MS server 2008. See MWE below. This works fine on my Win laptop but not so great on server. From clean login it runs ok the first time, but subsequent runs fail with error text: Win32::OLE(0.1709) [...] read more
I'm maintaining a web-app which currently references Interop.Excel.dll (v 1.5.0.0). The Interop.Excel.dll been used to access .xls files under Excel 2003 and then, subsequently, .xlsx/m files under Excel 2010. All worked fine. The web-app got moved onto another machine (which has Excel 2003 with 'Office 2007 Compatability Pack' installed) and [...] read more
I want to copy a Word document into a textbox in c# web application. I added the Microsoft Word 10.0 Object Library. But I am getting an exception. ERROR: The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) Microsoft.Office.Interop.Word.ApplicationClass wordApp = new ApplicationClass(); object file = filePath; object nullobj [...] read more
I am writing an application that extracts images from an Excel spreadsheet using COM interop. It works perfectly fine if I save the file as an XLS (2003 format) from Excel 2010 however if I save it as an XLSX (2007 to 2010 format) it produces this exception "The server [...] read more
I am debugging some other programmer's source code of a Windows Media Player plugin. This plugin causes WMP to crash sometimes, and sometimes it takes really long time to open plugin settings window. The problem occurs only when opening settings window while music is being played back. It opens without [...] read more
I have a function which is responsible for generating an Outlook email with the appropriate information. However, I wish to attach an image from the clipboard. I can already detect if there is an image present in the clipboard and use the picture box control to display it. IDataObject data [...] read more
SSIS package execution failing with below message: Exception deserializing the package "The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))". (Microsoft.DataTransformationServices.VsIntegration) SQL Server version info: Microsoft Visual Studio Enterprise 2019-Version 16.6.1 VisualStudio.16.Release/16.6.1+30128.74 Microsoft .NET Framework - Version 4.8.03752 SQL Server Analysis Services 15.0.1572.0 Microsoft SQL Server Analysis Services Designer [...] read more
Good day everybody, so we are trying to automate some Excel and have encountered a few errors, so we have the script that is listed below, but we ran into 3 different errors. Could someone help us identify where the script went wrong? The error that we are getting are: [...] read more
I am not very familiar with the OpenFileDialog class, but am using it to select a file and open the file in a C# winform app. This is my syntax, and when it hits the open line it has the correct filename, but it throws a debug error of System.Runtime.InteropServices.COMException: [...] read more