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

Running project as administrator helps with database but causes system.runtime.interopservices.comexception

I made a project that uses a sqlserverce database for pricelist, emploee info etc, makes offer in PDF and opens new email to send it to client. First problem was: "The specified table does not exist. [XXXXX]". I found out that if I run project as…
Łukasz Motyczka
  • 1,169
  • 2
  • 13
  • 35
0
votes
1 answer

PayPal PayFlowPro COMException 0x8000000A

We have some code that runs to connect to PayPal's PayFlowPro to update a credit card used within a recurring billing subscription. This code used to work fine under a .Net 2 app pool, but when we migrated it to 4.0 it's very touchy - sometimes it…
Scott Salyer
  • 2,165
  • 7
  • 45
  • 82
0
votes
1 answer

Filling Excel cell programatically with a IF formula doesn't work

I'm trying to fill an Excel 2010 cell programatically via COM Interop, with a string that represents an IF-formula. The following line of code works just fine, it resolves to value 4 in Excel: .Range("C10").Value = "=2+2" but when I pass an…
0
votes
0 answers

Login Form in Visual Basic 2010 and Access Database

When trying to login on my system I get a "COMexception was unhandled" error on the line that contains: DBConn.Open("Provider = Microsoft.Jet.OLEDB.4.0;" This is the code for the function that searches the database: Public Function Login() Dim…
0
votes
0 answers

AD throws COMException with Error Code -2147463168

Unbekannter Fehler (0x80005000) bei System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) bei System.DirectoryServices.DirectoryEntry.Bind() bei System.DirectoryServices.DirectoryEntry.get_AdsObject() bei…
Alexander
  • 19,906
  • 19
  • 75
  • 162
0
votes
1 answer

COMException on closing Excel workbook

I'm using Excel = Microsoft.Office.Interop.Excel to write various data to Excel sheets. Excel.Workbook wb = null; Excel.Worksheet ws = null; Excel.Application excelApp = new Excel.Application(); excelApp.Visible = true; try { // Create new…
Explicat
  • 1,075
  • 5
  • 16
  • 40
0
votes
2 answers

COM Exception HRESULT: 0xC00D1325 in C# winForm

I have a code in C# WinForm that should be able to read the list of songs from a listBox and then play each song with windowsMediaPlayer (for some reasons I want to play the songs from the last item of the listBox to the first one ) . here is the…
Bahareh LV
  • 53
  • 2
  • 8
0
votes
0 answers

Several ExternalExceptions when accessing the clipboard

I have some problems with the clipboard. Often when I try to access it (reading or writing data does not matter) I got ExternalExceptions. I know why exceptions with the error code CLIPBRD_E_CANT_OPEN happens, so I caught these exceptions. But now I…
Yggdrasil
  • 1,377
  • 2
  • 13
  • 27
0
votes
0 answers

WinrtXamlToolkit - Charting : ComException when use of INotifyPropertyChanged

I'm currently using the line chart (from WinRT XAML Toolkit), and I'm facing a problem : everything goes right, but if my (In)DependentValue which is bound to my LineSeries contains a change notification (INotifyPropertyChanged), the toolkit raise a…
Nicolas Voron
  • 2,916
  • 1
  • 21
  • 35
0
votes
1 answer

COMException using ODBC while trying to list "Views" in Codesmith

I have established an ODBC connection to a MySQL Server (ODBC driver version 5.1 by Oracle). The connection test succeeds! If I click to show the TABLES of the database it succeeds as well. Now I am trying to show the VIEWS and I get the following…
0
votes
1 answer

VB.Net "COMException was unhandled" Error

I have a VB.Net program written with .Net 2.0 I'm trying to write a code that logs entire registry entries into a log file. I have got it to work wit the following code. http://pastebin.com/kmA63cUe However whenever I try to add an additional…
Timothy Staudt
  • 89
  • 1
  • 3
  • 6
0
votes
1 answer

comexception error in c#

i want to write some datas into an excel file in visual studio 2010 premium but when i run my code, i take this error: comexception was unhandled by user code Exception from HRESULT: 0x800A03EC my error in detail…
rockenpeace
  • 1,011
  • 5
  • 18
  • 29
0
votes
1 answer

Can not get "StartMode" of a Windows Service. VB.NET

I want to know if a service startup mode is set on "automatic", and if yes, to set it to "Manual" I have this code: If objService("StartMode").ToString = "Automatic" Then objService.ChangeStartMode("Manual") End If But…
Andrei20193
  • 429
  • 3
  • 9
  • 17
0
votes
1 answer

How to fix this COMException - "Class not registered (Exception from HRESULT: 0x80040154"

I have a VB.NET project, and it works fine on my deveelopment machine (naturally :-)), but on two different computers I tested on, I get the following error, when I attempt to open a specific form. All three computers (including my dev machine,…
Chiwda
  • 1,233
  • 7
  • 30
  • 52
0
votes
1 answer

Saving read only Word document throws COMException in VSTO

When a Word document is opened in my Word Add-in, I validate the document. The validation requires the document to be saved so I call the save method: Microsoft.Office.Tools.Word.Document.Save() If the document is read-only, (my use case is opening…
Joe W
  • 1,789
  • 3
  • 28
  • 42
1 2 3
14
15