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

PDF Conversion Not Working

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?

3 Replies

KC Karthikeyan Chandrasekar Syncfusion Team 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  



JS Jack Simone January 24, 2019 02:40 AM UTC

Hi Karthikeyan,

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


KC Karthikeyan Chandrasekar Syncfusion Team 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  


Loader.
Live Chat Icon For mobile
Up arrow icon