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

Excel COMException : 0x800A03EC Document not saved

I am using Interop.Excel in my WinForms application. The application is used to copy some sheets from one workbook to newly created one. The newly created workbook is saved when I don't copy shapes. But, when I copy shapes into newly created sheet,…
0
votes
1 answer

Exception : (RPC_E_CANTCALLOUT_ININPUTSYNCCALL) when using WinForms application

I have created a WinForms application which uses BackgroundWorker. The methods in BackgroundWorer displays messages on a RichTextBox. The _TextChanged event handler scrolls to the end of the RichTextBox. Now the problem is that, I get an…
CDP21
  • 18
  • 4
0
votes
1 answer

Excel::Shape object getting released automatically after the count reaches 18 in List

I have a Excel addin written in C# 2.0 in which I am experiencing a strange behavior.Please note that this behavior is only seen in Excel 2003 and NOT in Excel 2007 or 2010. Issue: When the user clicks an import command button, a file is read and a…
A9S6
  • 6,575
  • 10
  • 50
  • 82
0
votes
2 answers

COM Exception in Application

I'm trying to upgrade an internal application, the infrastructure will be moving from 2008 to windows server 2012. The application builds presentations from model templates. I keep getting the attached COM Exception which looks to be associated with…
user3008705
  • 39
  • 1
  • 6
0
votes
2 answers

use object for adding formula to Excel c#

I want to add a formula as shown in the third component. When i remove the "=" everything works. But for adding a formula to excel, you need the "="... When I add the "=", the program doesn't work anymore... Then I receive the error:…
Deschuytterp
  • 127
  • 9
0
votes
1 answer

How to reset password for Active Directory

Does anyone know how can I reset password for Active Directory in C#? I wrote the following code to reset the password in Active Directory: [WebMethod] public static string ResetPassword(string test) { string userDn = "CN=Joe…
Jin Yong
  • 42,698
  • 72
  • 141
  • 187
0
votes
1 answer

Addin: How-to Do Merge programmatically

I use 2012 and VS 2010. I have Addin VS. I want do Merge of a ítem (sql file). I use the following code, but I get COMException exception: Command "File.TfsContextExplorerMerge" is not available My source code mehtod: public static void…
Kiquenet
  • 14,494
  • 35
  • 148
  • 243
0
votes
0 answers

Microsoft.Office.Interop.Word Error : -2146824090 (COM Exception, Command Failed)

I have a method that I'm using to save a Word file as a PDF, for the purposes of printing batches of documents pdf, doc and docx alike. When there is only one word document (doc or docx) and only one batch is printing, it performs as expected.…
hitoroki
  • 13
  • 5
0
votes
0 answers

InvalidCastException (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)) instead of COMException

im working with IPC (ROT) and COM interops. I will try to descripte my issue in few points: there are two c# applications called ComServer and ComClient ComServer creates an COM interop object and register this to ROT. Just a static Main method…
brainwave
  • 81
  • 5
0
votes
2 answers

Method 'frames' of object 'JScriptTypeInfo' failed

I am working on automation of internet explorer 9 through excel VBA, it throws an error when I reach on the last line below: Set ie = CreateObject("InternetExplorer.Application") ie.Visible = True ie.navigate "https://example.com/Main.asp" 'delay…
Zameer Ansari
  • 28,977
  • 24
  • 140
  • 219
0
votes
0 answers

Downloading in windows store app throws exception with HResult = 0x80004005

My windows store application worked fine before, but last time background downloading didn't work. The behaviour is very strange. Downloading progress works, I can see it on the progress bar. But at the end there is a COMException with…
IL_Agent
  • 707
  • 3
  • 16
0
votes
0 answers

Querying from AD - NO_OBJECT

My AD entry has the property msExchAddressBookPolicyLink with the value CN=ABL_Sub,CN=AddressBook Mailbox Policies,CN=MyExchange,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=intra,DC=contoso,DC=com. This value I put into variable abpLink (I…
Alexander
  • 19,906
  • 19
  • 75
  • 162
0
votes
0 answers

COMException + background thread + WPF

I am trying to use a COM component & activeX component in a WPF application. I am using these components via the background thread, so UI remains responsive. But the problem is I sometimes get a COM Exception while using these components. (not…
Sandepku
  • 861
  • 14
  • 31
0
votes
0 answers

AnyCPU / 64 bit app using ManagementClass usage causes Exception

I have an app that I am developing. It is compiled with the ANYCPU profile so i will be able to have it run on both 32 and 64 bit machimes. I am attempting to detect various pieces of system information using the ManagementClass and…
Jeff
  • 2,061
  • 4
  • 27
  • 45
0
votes
1 answer

COM Exception with c# webbrowser while clicking an event

I'm using C# Webbrowser to navigate a site and click some links. So When a page loads it's supposed to raise an onclick event for an anchor. Also, using InvokeMethod("click") hasn't ever worked for me. private void…
Darth_Evil
  • 591
  • 1
  • 7
  • 18