我尝试将 ABCpdf .NET 与 Azure 应用服务结合使用,但在生成 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.
通常在虚拟机中,我会将加载用户配置文件
设置为True
并且它可以工作,但在Azure应用服务中,我无权访问IIS应用程序池配置。
根据 ABCpdf 的开发人员的说法,它应该可以与 Azure 网站一起使用。
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.
最佳答案
您无法使用 Azure Web Apps(以前称为网站)修改注册表。因此,您会收到错误,因为应用程序无法自行注册。作为 Multi-Tenancy 服务,您不得修改注册表。
您需要返回并再次查看该页面,他们建议使用 VM 或 Web/worker 角色(这两者都允许修改注册表)。
关于azure - ABCpdf .NET 与 Azure 应用服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38375671/