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

WebKitHtmlConverter not working on deployed Azure website

Thread ID:

Created:

Updated:

Platform:

Replies:

120303 Sep 18,2015 04:37 PM UTC Mar 23,2018 01:51 PM UTC ASP.NET MVC 2
loading
Tags: PDF
Danfer Habed
Asked On September 18, 2015 04:37 PM UTC

We have a ASP.Net MVC application running on Azure website. We are trying to convert an url to pdf.

It works ok when we run the application locally, being able to generate and open the pdf file with the url content. When we deploy to Azure website, it just keeps waiting and do nothing, not even showing a blank pdf.

Any idea why is this happening? could it be related to files msvcp100.dll, msvcr100.dll not being available at Azure website? in that case the expected error is a blank pdf, which doesn't seems to happen here.

Thanks in advance,
Danfer.

Karthik Krishnaraj [Syncfusion]
Replied On September 21, 2015 10:49 AM UTC

Hi Danfer,
Thank you for contacting Syncfusion support,
Inorder to convert HTML to PDF using WebKit rendering engine, it requires elevated permission to convert Webpages to PDF document. Azure website do not have the elevated permission, as a result conversion of URL to PDF fails. As a workaround we suggest you to create a WebRole for the conversion part alone and host in Azure cloud, and then the WebRole can be add as service reference in your main sample. I have attached a simple sample for WebRole part, and also please refer the below steps to deploy the WebRole in Azure.

1) Create a new “WCF Service Application” project.

2) Add the code to convert HTML to PDF, I have attached the sample below for your reference.

3) After testing the Service in local machine host in Azure, make sure you have enabled “Copy Local” to True.

4) Project -> Convert to Windows Azure Cloud Service Project.

5) Then “Publish to Azure Cloud” from Solution Explorer
6) Once published add this as service reference to the Sample.

Sample Link:

WebRole for converting HTML to PDF

http://www.syncfusion.com/downloads/support/directtrac/138284/WebRoleWebkit_WCFService-1518735019.zip

WebRole for converting HTML to PDF with Azure Project

http://www.syncfusion.com/downloads/support/directtrac/138284/WebRoleWebkit_withQTAssemblies-1652665198.zip

Console Sample for using WebRole

http://www.syncfusion.com/downloads/support/directtrac/138284/WebkitConsoleWCF1621269699.zip


Please let us know if you need any further assistance.

Thanks,

 Karthik.

Sandro
Replied On March 23, 2018 01:51 PM UTC

.

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.

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

;