Windows error 0x80010105, -2147417851

Detailed Error Information

RPC_E_SERVERFAULT[1]

MessageThe server threw an exception.
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 Code261 (0x0105)

Questions

10votes
5answers

What causes error HRESULT: 0x80010105 (RPC_E_SERVERFAULT)?

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
.net
web-services
com-interop
10votes
4answers

How do I use MODI in an ASP.Net Web Application?

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
asp.net
ocr
modi
7votes
2answers

What does COM Error 80010105 mean and where to find other codes?

Is there a list of COM error codes somewhere? Related: HRESULT: 0x80010105 (RPC_E_SERVERFAULT) question read more
com
7votes
1answer

Can't read csv automatically with R(D)COM

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
c#
r
5votes
5answers

RPC_E_SERVERFAULT

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
asp.net
com
4votes
2answers

Excel interop - remote procedure call failed or RPC_E_SERVERFAULT

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
microsoft-excel
microsoft-office
automation
rpc
4votes
3answers

C#.net Use HTMLDocument from Console?

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 because [...] read more
c#
.net
console
3votes
1answer

Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT) when opening xlsx file

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
c#
excel
interop
3votes
3answers

How can I export an excel worksheet as image?

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
c#
excel
2votes
1answer

When running script in SSIS to modify a excel file get error :The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

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
excel
vb.net
ssis
etl
script-task
2votes
0answers

VBA can't take reference of an object

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
vba
2votes
0answers

InteropServices.COMException in ExportAsFixedFormat but only in Windows 10

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
c#
xml
winforms
2votes
1answer

The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

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
c#
.net-framework-version
comexception
visio2013
visio-2010
2votes
2answers

Windows Anniversary Update (1607) & ComException

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
c#
interop
windows-10
2votes
1answer

display sharepoint app in outlook 2013 and owa

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
sharepoint
apps-for-office
2votes
2answers

RPC_E_SERVERFAULT when calling Visual FoxPro COM object (out-of-process) from .Net?

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
c#
.net
com
interop
visual-foxpro
1vote
1answer

Cannot access any service through Sql Server 2008 Configuration Manager

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
sql-server-2008
1vote
0answers

Why upgrading to Windows 10 anniversity edition fails

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
windows-10
windows-10-upgrade
windows-10-v1607
1vote
0answers

C# and ArcMaps: How do i pass ui inputs to background thread without getting SERVERFAULT?

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
c#
multithreading
com
esri
arcmap
1vote
1answer

Cannot connect to SAP B1 9.1 server using SAPbobsCom.dll when using IP address

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
connection
ip
sap
1vote
2answers

How can I read data from an Excel file?

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
c#
excel
spreadsheet
1vote
0answers

how to fix the exception in var chartObject = charts.Add(60, 10, 600, 300) as Microsoft.Office.Interop.Excel.ChartObject?

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
excel
visual-studio
exception
charts
1vote
1answer

How to fix Can't retrieve group information for user IIS APPPOOL\DefaultAppPool

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
asp.net-mvc
visual-studio
iis
visual-studio-2015
iis-express
1vote
0answers

vb.net open multiple excel files in invisible mode

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
vb.net
excel
1vote
0answers

The server threw an exception 0x80010105 in SQL Server 2012

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
sql-server
1vote
2answers

C#/COM interop working only in debugger

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
c#
com
interop
1vote
1answer

Errors in .docx document creation

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
c#
windows-8
office-interop
word-2013
1vote
2answers

Hp Quality Center 11.0 connection error

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
c#
.net
1vote
2answers

COM Interop fails when moving to new server

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
asp.net
com
.net-2.0
foxpro
1vote
1answer

RPC_E_SERVERFAULT when closing Word document

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
c#
com
ms-word
interop
rpc
1vote
0answers

COM object that has been separated from its underlying RCW cannot be used vb.net

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
vb.net
com
1vote
0answers

MODI Issue `md.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, true, true)'

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
c#
ocr
modi
1vote
1answer

Using DbgHost.exe COM objects from C#

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
c#
debugging
com
windbg
1vote
2answers

OLEDB Debugging

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 Trace: at [...] read more
.net
debugging
oledb
1vote
1answer

RPC_E_SERVERFAULT error on oppening an Excel file in asp.net

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
asp.net
vb.net
excel
excel-vba
vba
1vote
1answer

Please clarify the meaning of "The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))"

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
c#
1vote
2answers

Help with debugging COM errors? (.mdi to .pdf file conversions using Microsoft Office Document Imaging)

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
c#
.net
com
file-conversion
modi
0votes
3answers

SQL Server 2008 R2 upgrade fails on upgrade rule check

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
sql-server-2008
service
sql-server
windows-server-2008
0votes
0answers

IJolietDiscMaster::AddData Compatability with 64 Bit Operating System

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
c#
winforms
32bit-64bit
cd
comexception
0votes
0answers

Acrobat SDK IAC Modify Annotation Points Property

References: Acrobat SDK Working With Annotations Project Details: Target framework: 4.5 Language: Visual Basic Interop.Acrobat version: 1.1.0.0 Host PC Specs: OS Name: Microsoft Windows 10 Enterprise Version: 10.0.17134 Build 17134 I'm currently trying to modify the points property of an annotation that I have loaded in vb.net. I am able [...] read more
javascript
vb.net
com
acrobat-sdk
0votes
1answer

SaveAs2 is giving an error while saving docx file C#

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
c#
ms-word
office-interop
save-as
0votes
1answer

Decrypt mail to Exchange public folder

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
powershell
email
outlook
outlook-vba
0votes
0answers

SSIS Project level Connection Managers and ExecuteOutOfProcess - not working

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
sql-server
ssis
0votes
2answers

Importing Excel Charts from Excel to PowerPoint causes `RPC_E_SERVERFAULT` on some machines

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
c#
.net
interop
office-interop
excel-interop
0votes
0answers

The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)

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
vb.net
sdk
sapb1
0votes
0answers

Call Excel VBA file from C# 0x80010105 error

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 it [...] read more
c#
excel-vba
vba
excel
0votes
0answers

VB.Net Opening Excel Throws "Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)'"

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
excel
vb.net
windows-7
excel-interop
0votes
0answers

How to set "Home networking connection" on network interface? C#

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
c#
cmd
0votes
1answer

Open Excel 2016 file failed with HRESULT: 0x800706BE

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
excel
vb.net
64bit
hresult
0votes
2answers

VB.net Excel ExportAsFixedFormat fails Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))

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
excel
vb.net
0votes
1answer

C# Force instantiation of external exe

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
c#
ole
0votes
2answers

VFP6 Com DLL not working in vs2012 .net framework 4.5 MVC 4 web application

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
.net
visual-foxpro
0votes
0answers

Error using Interop to open Excel in c#

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
c#
excel
interop
0votes
1answer

How to call Active Reports 2.0 com component from .net?

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
.net
com
com-interop
0votes
0answers

0x80010105 (RPC_E_SERVERFAULT) While Performing MailMerge Using C#

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
c#
mailmerge
0votes
0answers

dnvm upgrade fails to unpack runtime with RPC_E_SERVERFAULT on CopyHere

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
.net
dnx
dnvm
0votes
1answer

powershell XLS to CSV conversion issue

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
powershell-v3.0
0votes
0answers

How can I copy a single worksheet from one .XLS file to another?

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
c#
excel
0votes
1answer

Sending IBM Notes Mail 9.0.1

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
vb.net
lotus-notes
0votes
1answer

Application causing exception during scheduled time

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
.net
oracle
scheduled-tasks
console-application
arcobjects
0votes
2answers

What are the steps for calling a custom R routine (within a .R file) from a C# program?

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
c#
r
0votes
0answers

How to use a COM-Wrapper?

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
c#
vb.net
com
com-interop
0votes
1answer

Trying to understand why Perl Win32 OLE Excel Server threw an exception

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
perl
excel
exception
win32ole
0votes
2answers

excel interops OK with Excel 2003 with 'Office 2007 Compatability Pack'?

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
c#
asp.net
excel
office-interop
0votes
1answer

c# error copy word document to textbox

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
c#
asp.net
exception
ms-word
0votes
1answer

Extracting images from Excel 2007 - 2010 document

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
c#
.net
excel
com
interop
0votes
1answer

C++, COM and passing strings

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
c++
string
exception
com
bstr
0votes
1answer

Can I attach an image from the clipboard?

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
c#
outlook
clipboard
attachment
-1votes
1answer

Manipulating Excel with powershell

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
excel
powershell
cmd
automation
-1votes
1answer

Error Opening Excel 2007 File

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
c#
openfiledialog
import-from-excel
comexception

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