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
27
votes
4 answers

C# Active Directory: Get domain name of user?

I know that this type of question has been asked before, but other methods are failing me right now. As it stands our windows service polls AD, given an LDAP (i.e. LDAP://10.32.16.80) and a list of usergroups within that AD server to search for. It…
ghost_mv
  • 1,170
  • 4
  • 20
  • 43
26
votes
4 answers

How to create an instance of Excel if Excel is not installed

In my C# app, with the help of Excel Interop dll (as reference) i am reading/writing excel files. If I move this program to system where office/excel is not installed (think of clean machine), i am hitting with below…
Mahender
  • 5,554
  • 7
  • 38
  • 54
26
votes
4 answers

Automating Office via Windows Service on Server 2008

We have a Windows Service which runs on 2003 Server. It opens a source Word document using the Word Interop and then does some stuff with it. It also does likewise with Excel and PowerPoint files. Recently we've tried moving this service onto a…
Graeme
  • 1,657
  • 5
  • 28
  • 46
25
votes
14 answers

how to solve Exception:Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED)) in C#?

I have written a C# code in console application to open two excels and copy and paste data from one excel to another excel. It was working fine until the destination excel's visibility was true. But I need to hide the excel at the time of execution.…
Manoj Nayak
  • 2,449
  • 9
  • 31
  • 53
9
votes
1 answer

ASP.NET 4.0 Web App throwing "Incorrect function. (Exception from HRESULT: 0x80070001)"

The application is written in ASP .NET 4.0 hosted in IIS 7.5 on machine running Windows Server 2008 R2. The application pool is using Integrated Managed Pipline Mode. The exception below is thrown when on several different pages which don’t have…
user1069816
  • 2,763
  • 2
  • 26
  • 43
9
votes
2 answers

Disable-TlsCipherSuite : Exception from HRESULT: 0xD0000225

When I disable the cipher TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 in powershell of windows server, I got this error message Disable-TlsCipherSuite : Exception from HRESULT: 0xD0000225 At line:1 char:1 + Disable-TlsCipherSuite -Name…
funbrain9
  • 503
  • 6
  • 15
9
votes
3 answers

How to use resolve the zkemkeeper embedd issue?

Please check the code below : using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Diagnostics; using System.Linq; using System.ServiceProcess; using System.Text; using…
Raghav Julka
  • 91
  • 1
  • 3
8
votes
2 answers

Using Interop.MODI Throws 0x80040154 Exception

I am currently trying to implement the Interop.MODI.dll (From Microsoft Office) to use the Image -> Text features it should Provide. But when doing var modi = new MODI.DocumentClass(); I get: "COMException 80040154 with CLSID…
8
votes
2 answers

WebBrowser.Navigate(...) throws COMException

I'm developing an Internet Explorer command button that will open a specific web page once clicked. Here's a snippet of code (IEApp is a reference to an instance of IE.WebBrowser): IEApp.Navigate(sURL, ref one, ref two, ref three, ref four); The…
kh34
  • 181
  • 1
  • 3
  • 11
7
votes
1 answer

Universal App FolderPicker System.Runtime.InteropServices.COMException

I'm trying to make a universal app which merely opens a folder (like a shortcut) but allows for the new start tile design with custom color and bigger icon. When I open the FolderPicker to give the application access to the directory, I get an…
7
votes
4 answers

'License expired' error when dynamically generating Excel docs in ASP.NET

Anyone familiar with error below? When I run my webapp to generate a dynamic excel doc from my local machine it works fine but when the same piece of code is invoked on the server I get the below error. It seems like it's a permissions issues since…
Mac
  • 2,693
  • 7
  • 36
  • 44
7
votes
1 answer

Catastrophic failure (Exception from HRESULT: 0x8000FFFF) creating a playlist with axwindowsMediaPlayer

I am using the axwindowsMediaPlayer object to show videos in a winform. In particular I want to play a playlist. Everything works fine on my pc (win7) and used to work fine also in another pc with winXP (the pc of the final user). But something…
muccix
  • 321
  • 1
  • 3
  • 10
7
votes
2 answers

How do I avoid RPC_E_CALL_REJECTED exceptions when performing PowerPoint automation?

When my code tries to create a new instance of Microsoft.Office.Interop.PowerPoint.Application, I sometimes get the following exception: System.Runtime.InteropServices.COMException (0x80010001): Retrieving the COM class factory for component with…
Chry Cheng
  • 3,378
  • 5
  • 47
  • 79
6
votes
1 answer

Resizing Comments in Excel using ShapeRange

I have a spreadsheet that is created programatically with a lot of comments in it(up to 40,000). The comments get resized after deleting several columns from the worksheet. This is apparently a bug in excel. (…
user1759668
  • 61
  • 1
  • 2
6
votes
2 answers

VSHost crash, REGDB_E_INVALIDVALUE loading Specific Project

Whenever I load a solution in Visual Studio with a specific project set as the startup project, I get a VSHost32.exe crash. If I keep on going and launch the application, I get a COMException: {"Invalid value for registry (Exception from HRESULT:…
jcelgin
  • 1,164
  • 11
  • 21
1
2 3
14 15