Questions tagged [comexception]

COMException is a .NET exception and is thrown when an unrecognized HRESULT is returned from a COM method call.

COMException is a .NET exception and is thrown when an unrecognized HRESULT is returned from a COM method call. COMException is the base class for a set of predefined, standard exceptions.

225 questions
2
votes
0 answers

System.Runtime.InteropServices.COMException while navigating back - Win8

As soon as my app starts sync will happen where in data is fetched from the server. I show a progress bar (indeterminate) to indicate the same. Suppose I navigate to another page while the sync is happening and then press back I get the…
alfah
  • 2,077
  • 1
  • 31
  • 55
2
votes
1 answer

COMException when converting OneNote into HTML (but it works for PDF)

I am trying to convert a OneNote section into HTML and keep running into a persistent error. It's weird because the same code works if I convert to PDF. I'd appreciate help wit this one. using System; using System.Collections.Generic; using…
Yasemin
  • 88
  • 5
2
votes
2 answers

MODI.OCR Exception: Object hasn't been initialized and can't be used yet

I am trying to OCR an image in C# using MODI. I get the following error: System.Runtime.InteropServices.COMException (0xC6C80001): Object hasn't been initialized and can't be used yet at MODI.DocumentClass.OCR(MiLANGUAGES LangId, Boolean…
O-L-G-A
  • 21
  • 4
2
votes
1 answer

C# Out Of Memory/COMException that happens only on HP Z620 station

Our team works on a project, it's purpose is to create a renderer, which will render data on the screen. We used to work on a HP Z600 station with the following specs: RAM: 6GB 6 Cores Processor: Intel(R) Xeon(R) CPU X5650 @ 2.67GHz 2.66GHz OS:…
2
votes
0 answers

Error Code 2147500037 on Attempt for Bluetooth Connection in Windows Phone 8

I am attempting to establish an app-to-app bluetooth connection programmatically. Please see the following code snippet for the said purpose: StreamSocket streamSocket = await PeerFinder.ConnectAsync(peerInformation); I get this error whenever I…
2
votes
1 answer

ClickOnce installation generates error: System.Runtime.InteropServices.COMException, Failed to load the runtime, Exception from HRESULT: 0x80131700

This error occurs trying to deploy a WPF project through ClickOnce: Activation of [...file path...].application resulted in exception. Following failure messages were detected: Failed to load the runtime. (Exception from HRESULT:…
Felpudo
  • 81
  • 1
  • 8
2
votes
0 answers

mshtml.HTMLInputElement.name COMException

I've seen a similar issue when using mshtml.dll referenced in our .NET projects, but nothing related to this specific situation. I'm suspecting the issue may have some relation to what was said in this thread (.net document write with mshtml) about…
rlazo
  • 21
  • 2
2
votes
1 answer

Visual Studio set TargetFrameworkMoniker in Extension VS2012

I try to use the VSMonoTouch Plugin for Visual Studio 2012 to build my cross platform solution completely in Visual Studio. As this is not really supported and the maintainer does not really look like he will create a new branch some other guys…
Stefan
  • 1,007
  • 1
  • 11
  • 32
2
votes
1 answer

Tests failing in CruiseControl but succeed when I run them

I have CruiseControl.NET (v 1.6.7981.1) set up on a Windows 7 Pro dedicated build machine. I have a VS2012 project setup to build and then run MBUnit tests using Gallio.Echo.exe. My problem is that when CC.NET runs these tests it fails on a few of…
2
votes
1 answer

C# > UPnP - COMException: The owner of the PerUser subscription is not logged on to the system specified (Exception from HRESULT: 0x80040210)

I'm trying to communicate with dlna compliant devices using a C#.net application, using the UPnP protocol. I'm using the default Visual studio UPnP library("UPnP 1.0 type library (control point)"). I list all rendering devices using…
Oht
  • 409
  • 5
  • 19
2
votes
2 answers

Distinguishing between Exceptions thrown by Excel Interop operations

I am exporting data to Excel from within my C# application, using the Microsoft.Office.Interop.Excel library. Calling sheet.Cells[currentRow, 1]) with an invalid currentRow value, results in a System.Runtime.InteropServices.COMException with the…
Pieter Müller
  • 4,573
  • 6
  • 38
  • 54
2
votes
2 answers

ComException from UIAutomationProvider

DotNet 4.0 throws a runtime ComException when a MenuItem, which was previously visible, becomes hidden. When switching to DotNet 3.5 the Exception is no longer thrown. Setup Create new WPF DotNet 4.0 project Add the following XAML code to the…
Fortmann
  • 433
  • 6
  • 20
2
votes
1 answer

InteropServices.COMException on Access.DoCMD.RunSQL error

I wrote a little program in Visual Studio 2010 to open an Access database, enter a value into a table, and open a form. Pretty simple, and the program works great on my laptop. The problem arises when I try and run the exe on a second PC. I cannot…
1
vote
0 answers

Should I worry about InteropServices.COMException thrown when "Just My Code" is disabled (C#)?

I have a C# project that references a third party dll. When "Just My Code" is enabled in VS, everything works great and debugger doesn't stop on any exception. If I disable "Just My Code", a System.Runtime.InteropServices.COMException is thrown from…
bricx
  • 593
  • 4
  • 18
1
vote
1 answer

how to solve HRESULT: 0x80010001 (RPC_E_CALL_REJECTED) in C# : Excel Interop?

I'm working on a project with C#/WPF, I read and write in multiple Excel files with Microsoft.Office.Interop.Excel. I face this error randomly when I read the Excel file, sometimes when I read line 1382 sometimes 2218 etc PS : My Office Pack is…
Kate
  • 145
  • 3
  • 12