comexception

VB.NET COMException Error

I have written an application in VB.NET using MS Visual Studio 2005. I am using .NET version '2.0.50727'. The application was running without errors until recently. After being used for a while it begins to produce a System.Runtime.InteropServices.COMException error (80080005). The error happens when I make a call to produce an instance ...

'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 it works on my machine but not the server but I don't know where to start in order to pinp...

Debugging COMException

I am using an ancient Intergraph routing library to do some routing. I could create several ActiveX and COM objects just fine but there is this one type "Location" and "LocationCtrl" that throws a COMException on creation. Here's the relevant code _sourceLocation.Streets = _streets; _sourceLocation.VerifyAutomatic = fa_sourceLocations...

C# Deleting a IIS virtual directory on windows server 2003 gives a COMException

DirectoryEntry oDirectoryEntry = new DirectoryEntry(virtualDirMetaPath); oDirectoryEntry.DeleteTree(); This throws a COMException 0x80005000. Any pointers welcome. Creation of virtual directory is fine. Its only at uninstall I get this error logged in Event Viewver. ...

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 Windows 2008 Server machine and are having real problems with it. COMException at Microso...

System.Runtime.InteropServices.COMException (0x80070102): Operation failed.

Hi, When I am faxing a PDF file using FAXCOMLIB in VB.Net code, I am getting the following error. System.Runtime.InteropServices.COMException (0x80070102): Operation failed. at FAXCOMEXLib.FaxDocumentClass.ConnectedSubmit(FaxServer pFaxServer). What could be the problem? Thanks, P.Gopalakrishnan. ...

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. Click "Home" at the top of the page to return to your Web site.] at Microsoft.Share...

COMException when trying to use a Library

Hi Guys, I have an ASP.net WebService which uses a Library, this has a dependency on some third party .dlls. If I add a reference to the Library to my webservice, I get a COMException and I can't load the site. I thought it may be to do with aspnet user credentials, so I have tried impersonating and using processModel in machine.config...

Best Tools for helping debug an Interop issues

Hi guys, One of our customers is getting an interop issue, there is nothing in the stack trace that is worth noting, just ComException with an InterOp issue. I've tried Process Monitor and Dependency Walker, but nothing seems to pop up. It is C++ Managed running on .net 1.1. Any helps with any tools would be a life saver!? ...

Unknown com_exception error

I'm writing an extension for the Yii framework which I have asked on here about before and someone is reporting the following error: com_exception Description Source: UnknownDescription: Unknown Source File C:\wamp\www\yiisample\protected\extensions\gallery\EGalleryBase.php(364) They are using WAMP 5, PHP Version 5...

Random COMException on Web App "The handle is invalid"

...

WebBrowser.Navigate(...) throws COMException

Hi! Developing an Internet Explorer command button, that will open a specific web page once clicked. 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 above line throws the following COMException: Exception Source: Interop.SHDocVw Exception...

Visual Studio crashes when I debug a project with a certain form open in design mode..."Catastrophic failure"

As the title says, VS2008 keeps crashing on me whenever I debug a project when a certain form is open. I attached another VS2008 instance to it and found the following exception to be the culprit: System.Runtime.InteropServices.COMException occurred Message="Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))" ...

[COMException (0x80004005): Cannot complete this action.

Hi everyone, I dont know what is causing this, it just happened all of a sudden while I was working on the site, I am using sharepoint 2010, does anyone know how to fix it, cause everytime I try to access one of my workflow task it bombs and write this: " Cannot complete this action. Please try again.0x80004005 Description: An unhandle...

Calling Matlab's MLApp.MLAppClass.FEval from F#

Matlab provides a COM interface that supports remote execution of arbitrary functions (and code snippets). In particular, it has an Feval method that calls a given Matlab function. The third parameter to this method, pvarArgOut, has COM type VARIANT*, and appears in the Visual Studio F# editor as an argument of type: pvarArgOut: byref<o...

NUnit Test with WatiN, runs OK from Dev10, but when NUnit started from "C:\Program Files (x86)\NUnit 2.5.5\bin\net-2.0\nunit.exe"

I have the following code in an Nunit test ... string url = ""; url = @"http://localhost/ClientPortalDev/Account/LogOn"; ieStaticInstanceHelper = new IEStaticInstanceHelper(); ieStaticInstanceHelper.IE = new IE(url); ieStaticInstanceHelper.IE.TextField(Find.ById("UserName")).TypeText("abc"); ieStaticInstanceHelpe...

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

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 number of Shapes are created/added to the worksheet using Worksheet::Shapes::AddPicture(...

C# DHCP Access Error

I'm using dhcpobj.dll to interface with our DHCP servers and when I try to reference any Scope property other than "Address", I get a Windows dialog box stating there was a COM Surrogate error, followed by a COMException in my code stating that "The remote procedure call failed. (Exception from HRESULT: 0x800706BE). Has anyone come acro...

Symbolic Names for COMException HRESULT Error Codes in .NET

I would like to be able to use the standard symbolic names for HRESULTs returned by COM components in my .NET code. For example, I'd like to be able to write code like this: try { someComObject->DoSomething(); } catch (COMException ex) { if (ex.ErrorCode == E_FAIL) { HandleFail(); } else if (ex.ErrorCode == E_OU...

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 (REGDB_E_CLASSNOTREG)) The line which throws error is ((System.ComponentModel.ISupportInitialize)(this.axAcroPDF1)).EndInit(); If anyone knows the solution please h...