We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Error HRESULT E_FAIL has been returned from a call to a COM component.

Thread ID:





97166 Nov 3,2010 03:30 AM UTC Nov 9,2010 01:46 PM UTC ASP.NET Web Forms (Classic) 2
Tags: PDF
Asked On November 3, 2010 03:30 AM UTC

"It consists of a single .NET assembly which is compatible with both 32 and 64-bit machines, and has no external dependencies."

This is a stated attribute of Essential PDF, but it is not particular true. There is an external dependency for Microsoft.mshtml.

Anyhow, I am receiving the following error which I have not been able to resolve. I have read other posts on these forums and elsewhere that lead me to believe this is a permissions or security-related matter.




Are there any other recommended solutions to this problem?

using System;
using System.Drawing.Imaging;
using Syncfusion.HtmlConverter;
using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf.HtmlToPdf;

<%@ Page AspCompat="true" Language="C#" AutoEventWireup="true" CodeFile="IndexPDF.aspx.cs" Inherits="Pages_Dashboard_IndexPDF" %>

Error HRESULT E_FAIL has been returned from a call to a COM component.
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: Error HRESULT E_FAIL has been returned from a call to a COM component.

Source Error:

Line 35: HtmlToPdfResult result = html.Convert("http://www.google.com", ImageType.Metafile, (int)width, -1, AspectRatio.KeepWidth);

[COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.]
Syncfusion.HtmlConverter.Natives.IWebBrowser2.get_Busy() +0
Syncfusion.HtmlConverter.Natives.AxWebBrowser.get_Busy() +101
Syncfusion.HtmlConverter.HtmlConverter.InitializeBrowser() +199
Syncfusion.HtmlConverter.HtmlConverter.GetImagesFromUrl(String url, ImageType type) +253
Syncfusion.HtmlConverter.HtmlConverter.Convert(String url, ImageType type, Int32 width, Int32 height, AspectRatio aspectRatio) +134

System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

Replied On November 3, 2010 11:47 PM UTC

Are there any other recommended solutions to this problem?

Selvakumar P [Syncfusion]
Replied On November 9, 2010 01:46 PM UTC

Hi Mark,

Thank You for your interest in Syncfusion Products.

We are unable to reproduce the issue on our side. Could you please try the sample in the link below.


If the issue is still reproduced, please provide us your system configuration details. This would help us a lot in further investigating it.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon