Top "Comexception" questions

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

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 …

c# active-directory dns comexception
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 …

c# excel interop comexception
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 …

c# excel interop comexception
System.Runtime.InteropServices.COMException (0x800706BE) when getting contact.LastName

Some of our users are getting this exception sometimes (not for every contact): System.Runtime.InteropServices.COMException (0x800706BE): The …

c# .net outlook mapi comexception
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. …

c# exception comexception axwindowsmediaplayer
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 …

windows-services windows-server-2008 ms-office dcom comexception
COMException (0x80040154): Class not registered when using AxAcroPDFLib

I am getting following error when using AxAcroPDF System.Runtime.InteropServices.COMException (0x80040154): Class not registered (Exception from HRESULT: 0x80040154 (…

c# winforms comexception interopservices
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 …

asp.net exception iis-7.5 comexception
Getting COMException when accessing Emails on Outlook 2010

Hello I am trying to access my emails in Outlook 2010 via a C# Console Application. Visual Studio is started with …

c# visual-studio-2010 email comexception
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 …

c# powerpoint office-interop comexception