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. Image for the cookie policy date

HtmlConverter.convert fails on Win2008 Server

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)


6 Replies

TE Thiruvenkadam E Syncfusion Team September 15, 2009 12:14 PM UTC

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


II Igor Ivanov September 15, 2009 02:26 PM UTC

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


TE Thiruvenkadam E Syncfusion Team September 16, 2009 12:19 PM UTC

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


II Igor Ivanov September 16, 2009 12:52 PM UTC

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


TE Thiruvenkadam E Syncfusion Team September 17, 2009 12:16 PM UTC

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


KM Karthik M Syncfusion Team September 23, 2009 02:15 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon