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.

HtmlConverter.convert fails on Win2008 Server

Thread ID:

Created:

Updated:

Platform:

Replies:

89994 Sep 13,2009 01:00 PM Sep 23,2009 10:15 AM ASP.NET Web Forms (Classic) 6
loading
Tags: PDF
Igor Ivanov
Asked On September 13, 2009 01:00 PM

When we deploy our conversion code to production server, using Windows Server 2008 - our code gives following error:

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

MESSAGE: Exception of type 'System.Web.HttpUnhandledException' was thrown.

STACK TRACE: at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.Util.AspCompatApplicationStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Thiruvenkadam E [Syncfusion]
Replied On September 15, 2009 08:14 AM

Hi Igor,

Thank you for your interest in Syncfusion products.

We are currently working on this and we will update the status of the same on or before 16th September 2009.

Please let us know if you need any further information.

Regards,
Thiru

Igor Ivanov
Replied On September 15, 2009 10:26 AM

I have managed to fix the problem by copying microsoft.mshtml.dll into bin folder of my ASP.Net application.

Also, there is another solution discussed here:
http://objectmix.com/dotnet/104492-how-ensure-microsoft-mshtml-deployement-machines.html

Thiruvenkadam E [Syncfusion]
Replied On September 16, 2009 08:19 AM

Hi Igor,

Thanks for the update.

Glad to hear that the problem has been resolved.

Please let us know if you need any further information.

Regards,
Thiru

Igor Ivanov
Replied On September 16, 2009 08:52 AM

Actually, problem is still around.
From time to time application throws error
MESSAGE: Exception of type 'System.Web.HttpUnhandledException' was thrown.

And conversion is very slow even for simple documents...

Thiruvenkadam E [Syncfusion]
Replied On September 17, 2009 08:16 AM

Hi Igor,

We are sorry for the inconvenience caused,

We are trying to reproduce the reported issue in our testing envinonment and we will get back to you with in one business day.

Thanks you for your patience.

Regards,
Thiru

Karthik M [Syncfusion]
Replied On September 23, 2009 10:15 AM

Hi Igor,

We just heard from Chris that the reported problem has been resolved/ no longer reproduced on your side. However, please do let us know if you face any difficulties in the future.

Thank you for using Syncfusion Products.

Best Regards,
Karthik

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.

;