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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

PDF Conversion Not Working

Thread ID:

Created:

Updated:

Platform:

Replies:

142199 Jan 23,2019 07:56 AM UTC Jan 24,2019 10:47 AM UTC ASP.NET MVC - EJ 2 3
loading
Tags: PDF
Jack Simone
Asked On January 23, 2019 07:56 AM UTC

On my development machine I have an MVC 4.6.1 site functioning well, successfully producing a PDF from a web page using the Syncfusion libs and the Webkit rendering libs, which I placed in ~/bin/QtBinaries. Works great! However, the same web application code on the production server fails when doing the conversion. I'm having trouble tracking down the cause of this Exception. I've tried some debugging, and can say that the target URL to get the HTML content is never hit with an HttpRequest. I use ASPHostPortal as my hosting. Here's the Syncfusion.PdfException stack trace:

Syncfusion.Pdf.PdfException: Failed to convert the webpage at Syncfusion.Pdf.HtmlToPdf.HtmlToPdfResult.RenderWebKit(PdfPageBase page, PdfLayoutFormat format) at Syncfusion.Pdf.HtmlToPdf.HtmlToPdfResult.Render(PdfPageBase page, PdfLayoutFormat format) at Syncfusion.HtmlConverter.HtmlToPdfConverter.Convert(String url) at RuralData.Controllers.FormsController.d__11.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Mvc.Async.TaskAsyncActionDescriptor.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.b__36(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.b__3d() at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.b__3f() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass33.b__32(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResultBase`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.<>c__DisplayClass2b.b__1c() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass21.b__1e(IAsyncResult asyncResult)
Libs:

Any insights maybe?

Karthikeyan Chandrasekar [Syncfusion]
Replied On January 23, 2019 10:53 AM UTC

 Hi Jack, 
Greetings from Syncfusion. 
Failed to convert exception may occurs in some cases which is described in the below KB article. Please cross check if all the mentioned requisites are fulfilled in your server. 
 
Regards, 
Karthikeyan  


Jack Simone
Replied On January 24, 2019 02:40 AM UTC

Hi Karthikeyan,

Thank you for your response. I have tested it but it is not working. Ermmm.....

Karthikeyan Chandrasekar [Syncfusion]
Replied On January 24, 2019 10:47 AM UTC

Hi Jack, 
We faced this issue with our other customers also and all the possible cause and solution are documented in the provided KB link. So please double check this in your server machine. However, if you need our assistance please create a new Ditect-trac incident stating with this forum ID. So that we can have a web meeting and look into your machine directly and resolve your issue. 

Regards, 
Karthikeyan  


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon