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.

Catastrophic failure when trying to perform HTMLtoPdf Conversion

Thread ID:

Created:

Updated:

Platform:

Replies:

48890 Sep 6,2006 02:04 AM Jun 7,2007 08:06 AM ASP.NET Web Forms (Classic) 8
loading
Tags: PDF
Jason Finch
Asked On September 6, 2006 02:04 AM

I have downloaded a trial version of syncfusion and am attempting to create a small little HTML2PDF Converter. I''ve copied the source from another email in here but everytime I excute the page I get the following stackdump and am unsure where I should start looking to solve the problem?:

Server Error in ''/'' Application.
--------------------------------------------------------------------------------

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
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: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

Source Error:


Line 67: m_converter = null;
Line 68:
Line 69: }
Line 70: }
Line 71: private ImageType GetImageType()


Source File: D:\Inetpub\ORPUDev\Test\syncpdf2.aspx.cs Line: 69

Stack Trace:


[COMException (0x8000ffff): Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))]
SHDocVw.IWebBrowser2.Stop() +0
AxSHDocVw.AxWebBrowser.Stop() +23
Syncfusion.HtmlConverter.HtmlConverter.Dispose(Boolean disposing) +63
System.ComponentModel.Component.Dispose() +14
Qfrs.Test.syncpdf2.Convert() in D:\Inetpub\ORPUDev\Test\syncpdf2.aspx.cs:69
Qfrs.Test.syncpdf2.Button1_Click(Object sender, EventArgs e) in D:\Inetpub\ORPUDev\Test\syncpdf2.aspx.cs:25
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

Dhivya K [Syncfusion]
Replied On September 7, 2006 12:27 PM

Hi Jason,

Thank you for your interest in Essential PDF.
Could you please mention the .Net framework version and the Syncfusion Essential Suite version.This will help me in investigating further on this issue.

Thanks,
Dhivya.

Jason Finch
Replied On September 7, 2006 06:36 PM

Hi Dhivya,

ASP.NET 2.0
SyncFusion Studio 4.2.0.37

>Hi Jason,

Thank you for your interest in Essential PDF.
Could you please mention the .Net framework version and the Syncfusion Essential Suite version.This will help me in investigating further on this issue.

Thanks,
Dhivya.

Dhivya K [Syncfusion]
Replied On September 8, 2006 02:16 AM

Hi Jason,

I am afraid. I was unable to reproduce the issue when i tried running the sample with the mentioned version.

Here is a sample for your reference.
HTML_TO_PDF_CS_2005.zip

Could you please run this sample and let me know if the problem still exist.

Thanks
Dhivya.

Jason Finch
Replied On September 10, 2006 09:45 PM

Thanks Dhivya

I was able to get the code working from a new IIS application.

But when I attempted to use the code in an existing assembly after clicking the button to convert the browser would constantly sit there awaiting a response from the server. It appears as though the server thread just goes idle.

My test was as follows:
Copy your code to my existing project.
Add assembly references two dll''s provided.
Execute code.

I would really like to solve why this is so, as it prohibits me from recommending the product for purchase as I need the functionality integrated into our existing code.

Are there any items that may interfere with the operation of SyncFusion Essential PDF?

The server is running Windows 2003 SP1.

Dhivya K [Syncfusion]
Replied On September 11, 2006 09:11 AM

Hi Jason,

I am afraid.I am not able to reproduce the issue. Could you please do the following and let me know if the problem still exist?

1) Add to the @Page directive AspCompat="true" attribute to the page where we want to perform html to pdf convertion.

2) Reference the "AxInterop.dll and SHDocVw.dll" assembly to the project.

Thanks,
Dhivya.

Administrator [Syncfusion]
Replied On November 30, 2006 01:38 PM

Hi BGomes,

The error can be rectified by putting AspCompat=”true” in page directive. Could you please do the following steps.

Here are some steps for your clarification.

1) Add to the @Page directive AspCompat="true" attribute to the page where we want to perform html to pdf convertion.

2) Reference the "AxInterop.dll and SHDocVw.dll" assembly to the project.

Here is the sample for your reference.
HTML_TO_PDF_CS_2005.zip

Could you please take a look at this and let me if you have any other queries.
Regards,
Prakash.

Shankar
Replied On June 7, 2007 07:10 AM

hi,

tell me solution for this..

regds
Shankar

Melba Winshia [Syncfusion]
Replied On June 7, 2007 08:06 AM

Hi Shankar,

Could you please clarify the following?

1) Are you getting Catastrophic failure Exception while converting HTML to PDF? If this the case please follow the below steps:

a) Add to the @Page directive AspCompat="true" attribute to the page where we want to perform html to pdf convertion.

b) Reference the "AxInterop.dll and SHDocVw.dll" assembly to the project.

2) If the problem still exists after following the above steps, then please provide us the syncfusion version and .net version you are using? This would help us in investigating this issue further.

Kindly let me know if you have any other questions.

Thanks,
Melba


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.

;