ABCpdf .NET with Azure App Service

烂漫一生 提交于 2019-11-27 22:43:26

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/38375671/abcpdf-net-with-azure-app-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!