我有一个项目,需要收集几个数据,并将其放入一个pdf中,为此我使用了Rotativa包装器。它在本地服务结构集群上运行良好,我可以使用ViewAsPdf生成pdf,然后通过字节数组将其附加到电子邮件中。当我将项目部署到Azure (service集群)中时,问题就出现了,我得到了这个错误:
at Rotativa.AspNetCore.WkhtmlDriver.Convert(String wkhtmlPath, String switches, String html, String wkhtmlExe)\r\n at Rotativa.AspNetCore.WkhtmltopdfDriver.ConvertHtml(String wkhtmltopdfPath, String switches, String html)\r\n at Rotativa.AspNetCore.ViewAsPdf.<CallTheDriver>d__19.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---
我尝试过的事情:
服务结构节点是一台Windows机器。该项目是由aspnet核心2.0构建的,任何帮助都将受到赞赏。谢谢!
发布于 2018-06-27 16:41:21
我认为这是一个缺少依赖关系的问题。
根据您提供的The application was unable to start correctly(0xc000007b)场景和消息,还有其他相关问题:应用程序无法正确启动(0xc000007b)和错误:应用程序无法正确启动。
另一个问题可能是缺乏运行或访问特定依赖项的权限。
我建议你试试:
https://stackoverflow.com/questions/51052242
复制相似问题