带有Azure App Service的ABCpdf .NET [英] ABCpdf .NET with Azure App Service

查看:86
本文介绍了带有Azure App Service的ABCpdf .NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将ABCpdf .NET与Azure App Service结合使用,并在生成PDF时出现以下错误.

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.

通常,在VM中,我会将Load User Profile设置为True,并且可以运行,但是在Azure App Service中,我无权访问IIS应用程序池配置.

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.

根据ABCpdf的开发人员,它应可与Azure网站一起使用.

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

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

Windows Azure网站

WAWS站点在多租户环境中作为32位进程运行.为了将一个站点与另一个站点隔离,将WAWS锁定以防止进程间通信.尽管您可能会发现ABCpdf(32位)将安装到WAWS,但我们希望该功能会减少.

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.

推荐答案

您不能使用Azure Web Apps(以前称为Web站点)修改注册表.因此,由于应用程序无法自行注册,您会收到错误消息.作为多租户服务,不允许您修改注册表.

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.

您需要返回并再次查看该页面,他们建议使用VM或web/worker角色(这两个 do 都允许注册表修改).

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

这篇关于带有Azure App Service的ABCpdf .NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆