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

C# COMException as Windows Service, but WinForms OK

I'm attempting to write a Windows service in C# (VS2010,.NET 4.0) that acts as a long-running OPC client. Depending on the command-line arguments, it can run as a Windows service, or as a WinForms app with a Start/Stop button to emulate a service…
CrackingWise
  • 103
  • 1
  • 7
0
votes
0 answers

StreamSocketListener ConnectionReceived and COMException

I have a listener and it works fine except moment when events are too frequently. In this case COMException "An existing connection was forcibly closed by the remote host" it thrown on line resp.FlushAsync() and it coudn't be catched with…
Alexej Sommer
  • 2,677
  • 1
  • 14
  • 25
0
votes
1 answer

Why would I get, "InteropServices.COMException / ForwardCallToInvokeMember" with this code?

After retrieving data and storing it in a generic list, I've got this code to populate an Excel spreadsheet using Excel Interop code: . . . InitializeExcelObjects(); _currentTopRow = DATA_STARTING_ROW; foreach (PriceVarianceData _pvd in _pvdList) { …
0
votes
1 answer

Fatal error: Uncaught exception 'com_exception' in Aspose

I'm working with Aspose API, .NET Components platform Aspose.Words for .NET product. Here is my test.php code,
Ashan
  • 479
  • 7
  • 28
0
votes
1 answer

Office Excel VSTO Workbook Project Application.ThisWorkbook COMException

I created a new VSTO Excel Workbook Project and only attempt to get the workbook in which the macro is running using "ThisWorkbook" using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using…
MrSnrub
  • 57
  • 7
0
votes
1 answer

Crystal Reports invalid parameter index?

I'm working with VB2010 C# and CR13. I've created a report with empty parameter fields that I'll fill during runtime using the texts that the user will enter on multiple text boxes. I've created a dictionary that contains the parameter name as the…
Carles
  • 68
  • 11
0
votes
1 answer

WPF - error when calling Measure: Not enough storage is available to process this command. (Exception from HRESULT: 0x80070008)

In a WPF, single-thread application, I'm adding several FixedPages to a FixedDocument. Every FixedPage contains many other objects, like Images and TextBlocks. Everything goes OK, but after some time (having added about 300 pages), I create a new…
Starnuto di topo
  • 3,215
  • 5
  • 32
  • 66
0
votes
0 answers

WPF Image Resizing error: System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80072EE4

The code below is throwing error: System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80072EE4 on code line: Dim bdDecoder As BitmapDecoder = BitmapDecoder.Create(streamPhoto, BitmapCreateOptions.PreservePixelFormat,…
Adam
  • 6,041
  • 36
  • 120
  • 208
0
votes
1 answer

Accessing Outlook via C# - COMException when checking a message's sender but not the subject?

I'm using Visual Studio and Outlook 2010. I am able to connect to my local Outlook default profile and list the messages in the Inbox, but I can only get the SentOn, Subject, and EntryID properties. As soon as I try to access the SenderName or Body…
Aaron
  • 87
  • 2
  • 9
0
votes
3 answers

Working with worksheet

I'm using Microsoft Excel 15.0 Object Library and opening the .xlsx file this way: static void readDirection(String path) { Application excel = new Application(); Workbook wb = excel.Workbooks.Open(path); foreach…
Carlos Siestrup
  • 1,031
  • 2
  • 13
  • 33
0
votes
0 answers

What is the cause and solution for this file inaccessibility?

Trying to get a basic VB.NET Excel file creation app working, starting from some sample code from here, I'm getting err msgs with this code: Private Sub ButtonCreateExcelFile_Click( sender As Object, e As EventArgs) Handles…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
0
votes
1 answer

Kinect V2 COMException when construct VisualGestureBuilderDatabase

I created a windows8.1 app with Kinect, but when I tried to construct the VisualGestureBuilderDatabase class, however my program throws System.Runtime.InteropServices.COMException. I totally don't know why. I use VS2015 and the program stops at the…
0
votes
2 answers

I can access a file on a network path, but I cannot save to the same path (C#) (asp.net)

This declaration has no problem accessing the file in my network. MyApp = new Excel.Application(); MyApp.Visible = false; MyBook = MyApp.Workbooks.Open("//NetworkFolderPath/File.xlsx"); //This line MySheet =…
Bauer
  • 159
  • 4
  • 13
0
votes
0 answers

Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))

I am using WatiN for IE automation. I want to automate Yahoo Search (just for test). When I run WatiN.Core.Document.Eval("js code") right after launching IE, it works and I can run my javascript on the page. However when I do some search in Yahoo…
Sunny Tambi
  • 2,393
  • 3
  • 23
  • 27
0
votes
1 answer

System.Runtime.InteropServices.COMException was unhandled. Creating an instance of the COM component with CLSID {313CF0C8-2F04-4A83-839E-075D70E89FE7}

I am using the third party Library "XPression" for developing a C# project. But I am facing some problem which is shown in the screenshot image below. Any help would be appreciated