"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-componenthttp://www.syncfusion.com/support/forums/pdf-aspnet/90723/subject--error-hresult-e_fail-has-been-returned-from-a-call-to-a-com-componenthttps://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