azureazure-web-app-serviceabcpdf

ABCpdf .NET with Azure App Service


I am trying to use ABCpdf .NET with Azure App Service and getting the following error when generating a PDF.

Unable to render HTML. Failed to configure IE 9 or above for the MSHtml engine: 
Access denied while writing to the registry. 
For IIS applications, please enable "Load User Profile" or 
consult MSHtmlBootstrap in the documentation.

Usually in a VM I would set Load User Profile to True and it works but in Azure App Service, I do not have access to IIS Application Pool configuration.

According to the developer of ABCpdf, it should work with Azure websites.

http://www.websupergoo.com/support-azure-abcpdf.htm

Windows Azure Web Sites

WAWS sites operate as 32-bit processes in a multi-tenanted environment. In order to isolate one site from another WAWS is locked down to prevent inter-process communication. While you may find ABCpdf (32-bit) will install to WAWS, we expect the functionality will be diminished.


Solution

  • You cannot modify the registry with Azure Web Apps (formerly Web Sites). So, you're getting an error because the app cannot register itself. Being a multi-tenant service, you are not allowed to make registry modifications.

    You need to go back and look at that page again, where they suggest using a VM or a web/worker role (both of which do allow for registry modification).