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

Server Error in '/' Application

when i run my code on local, no problem.. but when i run my code on the server, i take this error: Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class…
rockenpeace
  • 1,011
  • 5
  • 18
  • 29
0
votes
2 answers

Is updating LiveTile on Application_Deactivated a good practice?

I have not used Background Agents for updating LiveTiles. I update the tile on exiting of the app and on Application_Deactivated. private void Application_Deactivated(object sender, DeactivatedEventArgs e) { CycleManager pCycMan =…
alfah
  • 2,077
  • 1
  • 31
  • 55
0
votes
2 answers

SharePoint COMException

When adding or editing a page in a SharePoint Pages library we get the following exception: [COMException (0x81020016): Item does not exist The page you selected contains an item that does not exist. It may have been deleted by another user.…
Colin
  • 10,630
  • 28
  • 36
0
votes
1 answer

Workbooks.Open cannot find file, but path is correct

I'm building a C# addin for Autodesk Inventor. The only reason this is relevant is because I had to uncheck the box "Register for COM Interop". Here's what I'm using. The xls is always in the same directory the code is running in. I've tried this…
Brandon
  • 1,058
  • 1
  • 18
  • 42
0
votes
1 answer

Getting a COMException in my Microsoft Lync video chat app

I am trying to develop a basic app in Visual Studio that does a simple video chat with another person. Everything was working fine and I was able to successfully open a video chat. However, I have installed Lync with UI Supression, and the app will…
-1
votes
2 answers

Visio Page Find Shape by Name without exceptions

In Visio VBA (or COM API) How can i get a shape without expecting an exception when the shape name is not found? ... in my visio page, there might or might not be a Rectangle Shape with the name "DraftText". i want to check that it is there and if…
Tomer W
  • 3,395
  • 2
  • 29
  • 44
-1
votes
1 answer

COMException on Main Thread of WPF application

WPF, Excel AddIn, C#, I have multiple asychronous calls to get data from web service on main thread, then in call back, I will plot the data in Excel. I tracked call back and they run on main thread, too. but I still get COMException 0x800AC472,…
toosensitive
  • 2,335
  • 7
  • 46
  • 88
-1
votes
1 answer

System.Runtime.InteropServices.COMException in an application reading Excel file on server but not locally

I am getting the COMException when importing data from Excel file. Now my application uses Microsoft.Office.Interop.Excel NuGet package but it referenced the dll in GAC and this dll didn't get into the bin when publishing the files. So I manually…
Jordan J
  • 21
  • 3
-1
votes
2 answers

WPF render thread failure exception

In my application, I have a task which runs in the background to perform a long-running job. The user can cancel the job anytime by clicking Stop button. The implementation is as belows: private CancellationTokenSource m_tokenSource; private void…
-1
votes
1 answer

VB The object invoked has disconnected from its clients

I have a console app that interacts with internet explorer to do a few things. Basically, the app runs perfectly normal in debug/release mode out of VS 2015 professional. Once published in debug or release mode as an exe, I get the error you see in…
MZawg
  • 308
  • 4
  • 15
-1
votes
1 answer

False System.Runtime.InteropServices.COMException although File exists

I've been trying to open an EXCEL file through console but everytime I get the following exception: System.Runtime.InteropServices.COMException that the file doesn't exist or missing.Path is correct. Here is the code I get the exception: string…
i_ll_be_back
  • 317
  • 1
  • 14
-1
votes
1 answer

System.Runtime.InteropServices.COMException once and again

I don't know why / when this happens, but this error message bugs me like each year: Exception thrown: 'System.Runtime.InteropServices.COMException' in mscorlib.dll Additional information: The COM class factory for the component with the CLSID…
tmighty
  • 10,734
  • 21
  • 104
  • 218
-1
votes
1 answer

Word.Interop document closed

I'm trying to integrate word spell checking into a WinForms application. So far, the interop lib has been a severe pain in the rear. After many hours of messing around with it, I finally got the actual spell checking to work. The CheckSpellingOnce…
-1
votes
1 answer

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…
Bob Goblin
  • 1,251
  • 3
  • 16
  • 33
-1
votes
2 answers

COMException unhandled in MS Word

We have a function which is supposed to get the range of the viewed text in a word document. However, we are getting the COMException in the first few lines of the function. The function is called with a fixed timer every 10 seconds. We're dealing…
lironlahav
  • 13
  • 3
1 2 3
14
15