简体   繁体   English

NReco.PdfGenerator.WkHtmlToPdfException:退出代码:-1073741521

[英]NReco.PdfGenerator.WkHtmlToPdfException: exit code: -1073741521

I working on a pdf generator with NRec PdfGenerator and it works fine at the start when I working with local, once I package up and deploy to server it fail and show the error message 我使用NRec PdfGenerator pdf生成器,并且在使用本地处理时一开始工作良好,一旦打包并部署到服务器,它就会失败并显示错误消息

Cannot generate PDF: (exit code: -1073741521) ---> NReco.PdfGenerator.WkHtmlToPdfException: (exit code: -1073741521)

I not sure whats causing it and I believe is not related to the code itself, and I could find any related post or article that about the exit code shown. 我不确定是什么原因导致的,并且我相信与代码本身无关,并且我可以找到有关所示退出代码的任何相关文章或文章。

Is there anyway to fix this error? 反正有解决此错误的方法吗?

Any advice to this will be appreciated. 任何建议,将不胜感激。 Thanks. 谢谢。

正如Vitaliy Fedorchenko所评论的,可以通过安装缺少的必需的Universal C运行时库( https://support.microsoft.com/zh-cn/help/2999226/update-for-universal -c-runtime-in-windows )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM