.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

FaxComExLib InteropServices.COMException (0x800710D8): Operation failed

Posted By:      Posted Date: September 10, 2010    Points: 0   Category :.NET Framework
Hi! I've developed an application that takes a PDF document and converts it to a TIFF file using GhostScript library. This process is done correctly. I then setup a fax connection using FaxComExLib.FaxServerClass to send that TIFF file through fax. My settings (developing/testing environment) are as follows: * Servers are in a domain (baker.street)  - DC containing AD | name: holmes  - Processing server | name: adler  - Fax Server | name: watson * I have a special account BAKERSTREET\Fax The application is running as a Windows Service as user BAKERSTREET\Fax. This services receives Events from a MSMQ queue that has the processing information. (again, this is done correctly). The file is transformed an then an attempt to send the fax is done. Here comes the problem: Scenario 1: * Running account: BAKERSTREET\Fax * Fax Server: \\watson * Result: InteropServices.COMException (0x800710D8): Operation failed               The fax is not sent to the fax server. Scenario 2: * Running account: BAKERSTREET\Fax * Server Fax: \\adler (localhost; this is the computer where the process runs) * Result: The fax is sent successfully to the Outbox Queue in the Fax Server. Scenario 3: * Running account: BAKERSTREET\Administrator (domain administrator account) * Fax Server: \\watson * Result: As shocking as this may

View Complete Post

More Related Resource Links

System.Runtime.InteropServices.COMException (0x800A03EC): Microsoft Excel cannot open or save any mo


Hello good people, 

I have this beast as an error. Did my research and found some posts here as well but did not do any good for me. 

Here is what I did. I had an error regarding issue rights with COM objects so I gave access rights under component services for Microsoft Excel application now I am getting this error. 

Here is some information regarding this

1. Gave rights to ASPNET and network service to my web app directory to try to fix this error. 

2. The exact same process works on my Windows 2003 server and my Windows 7 development machine. I am trying to get this going on a different windows 2003 machine that is outside of our domain.

3. Developing on windows 7 64 bit with office 2010 installed. Also excel 2010 is installed on my Web server

4. Here is the code that is causing the error: The last line is causing the error.:

            MyXl = new Microsoft.Office.Interop.Excel.Application();
            MyXl.Visible = false;
            MyWb = (Microsoft.Office.Interop.Excel._Workbook)(MyXl.Workbooks.Add(Missing.Value));
            int test = 0; 
            MySheet = (Microsoft.Office.Interop.Excel._Worksheet)MyXl.ActiveSheet;
            if (reader.HasRows)
                int InRow = 2; 
                for (int i = 0; i < Nu

System.Runtime.InteropServices.COMException with Event Handlers

hi,           i have written an ItemDeleting Event handler for a document library which holds images. the itemdeleting eventhandler works fine and displays the  errormessage on sharepoint error page when properties.cancel=true and properties.ErrorMessage="This Image is still being used in Announcements. Cannot Delete. ". this works fine when i delete from the doclibrary itself. when i delete the images in the document library from the ImageManger Tool of RadEditor it throws the com exception as follows instead of the sharepoint error page Server Error in '/' Application. -------------------------------------------------------------------------------- This Image is still being used in Announcements. Cannot Delete. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: This Image is still being used in Announcements. Cannot Delete. can anyone suggest, how to reslove this issue.? i have the screenshots,which would better explain but i dont know how to paste images into this forum? kindly let me know how to upload images to this forums also. thank you all

SSIS package fails giving "System.Runtime.InteropServices.COMException" exception


I am trying to execute the package in SQL Server 2008 and i am getting this error.


Executed as user: sql\SYSTEM. Microsoft (R) SQL Server Execute Package Utility  Version 10.0.2531.0 for 32-bit  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.    

Started:  11:07:09 AM  Error: 2010-09-20 11:07:10.95     Code: 0x00000000     Source: Transform Data Task  undefined      

Description: System.Runtime.InteropServices.COMException (0x80040428): Package failed because Step 'DTSStep_DTSDataPumpTask_1' failed.     at DTS.PackageClass.Execute()     at Microsoft.SqlServer.Dts.Tasks.Exec80PackageTask.Exec80PackageTask.ExecuteThread()  End Error  DTExec: 

The package execution returned DTSER_FAILURE (1).  Started:  11:07:09 AM  Finished: 11:07:10 AM  Elapsed:  1.094 seconds.  The package execution failed.  The step failed.


Do any one have a clue


MOSS 2007 Restore Operation Failed: The specified component exists.


I have a production MOSS farm and selected to backup my content database to a share on my network so I can move its data to my development environment. I used the Sharepoint Central Administration GUI to do this backup and selected New Configuration since I didnt want to use the same config as my production server (i.e - my development environment has its own farm with different naming conventions for those servers), and then changed the name of the Database server and kept the same name as the current _SITE database in my DEV environment. The backup ran fine, but now on restoring from the backup I receive this message below:


Object portal1_SITE failed in event OnRestore. For more information, see the error log located in the backup directory. SPException: The specified component exists. You must specify a name that does not exist.

Below is some information from the log...


[9/19/2007 9:57:18 AM]: Verbose: Starting OnRestore event.
[9/19/2007 9:57:18 AM]: Verbose: Starting object: portal1_SITE.
[9/19/2007 9:57:18 AM]: Verbose: [portal1_SITE] SQL Server Conn

System.Runtime.InteropServices.COMException (0x800A141F): Word was unable to read this document. It



I am using the Interop.word.dll in my project to generate word reports. Reports are getting with out any exception if am using 2003 ms word. If i am using 2007 word iam getting the error as


System.Runtime.InteropServices.COMException (0x800A141F): Word was unable to read this document.  It may be corrupt


Please help to get reports work well in word 2007 also.




A first chance exception of type 'System.Runtime.InteropServices.COMException'


After calling a very simple WCF Service I bind the result an Observable Collection of Countries to WPF ComboBox, in second ComboBox of cities I displayed the filtered cities based on the selected country. It works fine the first time but when I select another country it takes lots of time to display, the Visual Studio 2010 output displays this like 50 times:

A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll

Intereting to point out that it only happens if I try to open the ComboBox and not if if navigate through code doing something like SelectedIndex=2 . It does not happen as well if instead of the ComboBox I use a ListBox or TreeView.

Some extra details.... the real exception detail is:

An event was unable to invoke any of the subscribers (Exception from HRESULT: 0x80040201)

Please help with this bug....

ReportServicesConfigUI.WMIProvider.WMIProviderException: System.Runtime.InteropServices.COMException


Hi there!

I installed the Sql Reporting Services under Vista Business.

When i run de configuration tool, i have to select yhe machine name and instance name... then when i press connect this exception is thrown


ReportServicesConfigUI.WMIProvider.WMIProviderException: A WMI error has occurred and no additional error information is available. ---> System.Runtime.InteropServices.COMException (0x8000000A)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at System.Management.ManagementObject.InvokeMethod(String methodName, ManagementBaseObject inParameters, InvokeMethodOptions options)
   at ReportServicesConfigUI.WMIProvider.RSInstance.RefreshServerStatus()
   --- End of inner exception stack trace ---
   at ReportServicesConfigUI.WMIProvider.RSInstance.RefreshServerStatus()
   at ReportServicesConfigUI.WMIProvider.RSInstance.get_DelayLoadConfiguration()
   at ReportServicesConfigUI.WMIProvider.RSInstance.get_Item(ConfigurationItemNames itemName)
   at ReportServicesConfigUI.ConfigurationManager.ResetStepStatus()
   at ReportServicesConfigUI.ConfigurationManager.ChangeMachine()
   at ReportServicesConfigUI.ConfigurationManager.LaunchDialog()
   at ReportServicesConfigUI.ConfigurationManager.tsbConnect_Cl

The operation failed because an unexpected error occurred. (Result Code: 0x81071003)


Hi all,  I have a SINGLE web service that I call through two different programs.  I input the same values into the service and call a sevice method.  One call fails every time, one call works every time.  I have installed Fiddler2 and copied the requests and responses from each.  They are identical except for the [VsDebuggerCausalityData] header value and the [Authorization:] value (data below)  what is this error? What can I do to address it? Why does it work for one app, but not the other when the requests are the same.  I guess since the Authorization is different it could be a security problem. But I'm not so sure because I'm not getting a security type error.  The first trace is the working example (look at the response) the second is the failing call.  I have changed the Authorization values.

POST http://kerryportal/global/DMS/CRM/_vti_bin/Lists.asmx HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.4952)
VsDebuggerCausalityData: uIDPo+bNI0fMARFBsgZwKLhVCEUBAAAA2xBAL4gjpUWSP4dBtR8U/4q2nB9UKJVFvuCo3qZaaXUACQAA
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://schemas.microsoft.com/

InteropServices.COMException reading DirectoryEntry


I am trying to identify information in ActiveDirectory concerning the local IIS server.   In the WinXP x32 world I have been starting with:

System.DirectoryServices.DirectoryEntry IIS = new System.DirectoryServices.DirectoryEntry("IIS://localhost/W3Svc/1/Root");

Howeve in the Win7 x64 world, I get an COMException when I try to access any properties of the DirectoryEntry object.

I am running as an administrator, so I doubt that it is a permission issue.   I also tried opening the DirectoryEntry("BadEntry") and get the same results.   I therefore suspect that the entry name is different in the Win7 x64 world.

What is the correct path to the default website in the Win7 x64 world?





preupgradecheck Failed : Pending upgrade operation detected in this farm


Hi There,

While executing stsadm command for pre-upgrade on WSS 3.0, I get an error “Failed : Pending upgrade operation detected in this farm“.
 I ran psconfig -cmd upgrade -inplace b2b -wait successfully, but still get the error above.  How do I get rid of this error?



ManagementObjectSearcher causes InteropServices.COMException (0x80070017)


Below is the exception:

ManagementObjectSearcher causes InteropServices.COMException (0x80070017):Data error (cyclic redundancy check).(Exceptiofrom HRESULT: 0x8007007)

at System.Management.ThreadDispatch.Start()

at System.ManagementScope.Initialize()

at System.ManagementObjectSearcher.Initialize()

at System.ManagementObjectSearcher.Get()


Do you have any idea what is causing this


Running on windows XP

VS2010 RTM

.Net 4.0

PreUpgradeCheck Failed : Pending upgrade operation detected in this farm


I'm failing the stsadm -o preupgradecheck process with the following:  (preparing for MOSS 2007 to SPS 2010 upgrade).

Failed : Pending upgrade operation detected in this farm

Pending upgrade is detected on this farm. Either upgrade has not been run, or has failed after a recent update of the SharePoint software.

Run the SharePoint Products and Technologies Configuration Wizard to finish the pending upgrade. For more information about this rule, see KB article 954775 in the rule article list at http://go.microsoft.com/fwlink/?LinkID=120257.


System.Runtime.InteropServices.COMException: List does not exist.


I just setup a list. I added a few items to it and then added my web part to the site. 

Now if I go back to the list settings under /_layouts/listedit.aspx?List=%7B5A3E222D%2D9350%2D49E9%2DB433%2D12D4223011E7%7D

I get the attached error. How did my list get removed and why can I still see items in it in AllItems.aspx?

 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: List does not exist.

The page you selected contains a list that does not exist.  It may have been deleted by another user.<nativehr>0x81020026</nativehr><nativestack></nativestack>

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and locat

Sharepoint 2010 Configuration Wizard Failed- Invalid Operation was thrown



I installed SharePoint 2010 Standard on a Server with Windows 2008 Service Standard SP2 64bit OS. When I run the Configuraton Wizard it fails and the following message appears:

An exception of type System.Invalid OperationException was Thrown.Additional exception information: Cannot start service c2wts on computer.

the details are:

System.InvalidOperationException: Cannot start service c2wts on computer '.'. ---> System.ComponentModel.Win32Exception: The service did not respond to the start or control request in a timely fashion
   --- End of inner exception stack trace ---
   at System.ServiceProcess.ServiceController.Start(String[] args)
   at Microsoft.SharePoint.Win32.SPAdvApi32.StartService(String strServiceName)
   at Microsoft.SharePoint.Administration.SPWindowsServiceInstance.Start()
   at Microsoft.SharePoint.Administration.SPWindowsServiceInstance.Provision(Boolean start)
   at Microsoft.SharePoint.Administration.Claims.SPWindowsTokenServiceInstance.Provision()
   at Microsoft.SharePoint.PostSetupConfiguration.ServicesTask.InstallServiceInstanceInConfigDB(Boolean provisionTheServiceInstanceToo, String serviceInstanceRegistryKeyName, Object sharepointServiceObject)
   at Microsoft.SharePoint.PostSetupConfigur

Sys.Net.WebServiceFailedException: The server method '' failed with the following error:



Let's say we have 2 time consuming functions, aaa and aaa1 inside a aspx page.

        public static string aaa(int i)
            return i.ToString();

        public static string aaa1(int i)
            return i.ToString();



        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
        <span id="displayspan"></span>
        <br />
        <input type="button" value=

WebMatrix conversion failed when converting from a character string to uniqueidentifier?


I am trying to retrieve xml from a small function in my .cshtml page. Its throwing me an error. This however, runs fine in a console/form environment.

It takes 3 parameters and 1 exception.

myDll.GetXML(year, username, uniqueidentifier, out ex);

When I run this page I get the error, "Conversion failed when converting from a character string to uniqueidentifier."

Or a stack of.

System.Data.SqlClient.SqlException (0x80131904): Conversion failed when converting from a character string to uniqueidentifier.

   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)

   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)

   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()

   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)

   at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()

   at System.Data.SqlClient.SqlDataReader.get_MetaData()

   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)

   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBeha

Timeout expired. The timeout period elapsed prior to completion of the operation or the server is no



 I keep getting the following error. I also added time out parameter in the connection stirng and it still did not help. Has any one faced similar issues.

Thanks in adavance.

Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.


Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SqlException (0x80131904): Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.]
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend