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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

97166 Nov 2,2010 11:30 PM Nov 9,2010 08:46 AM ASP.NET Web Forms (Classic) 2
loading
Tags: PDF
Mark
Asked On November 2, 2010 11:30 PM

"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.

http://www.syncfusion.com/support/forums/pdf-windows/90703/error-hresult-e_fail-has-been-returned-from-a-call-to-a-com-component

http://www.syncfusion.com/support/forums/pdf-aspnet/90723/subject--error-hresult-e_fail-has-been-returned-from-a-call-to-a-com-component

https://www.syncfusion.com/support/forums/pdf-aspnet/96155/PDF-error

Are there any other recommended solutions to this problem?

Code-Behind:
------------
using System;
using System.Drawing.Imaging;
using Syncfusion.HtmlConverter;
using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf.HtmlToPdf;

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

Exception:
----------
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




Mark
Replied On November 3, 2010 07:47 PM

Are there any other recommended solutions to this problem?


Selvakumar P [Syncfusion]
Replied On November 9, 2010 08:46 AM

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.

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=HtmlToPDF316802633.zip

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

Regards,
Selvakumar


CONFIRMATION

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.

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.

;