NReco.PdfGenerator.WkHtmlToPdfException:退出代码:-1073741521 [英] NReco.PdfGenerator.WkHtmlToPdfException: exit code: -1073741521

查看:95
本文介绍了NReco.PdfGenerator.WkHtmlToPdfException:退出代码:-1073741521的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 NRec PdfGenerator 在 pdf 生成器上工作,当我在本地工作时,它在开始时工作正常,一旦我打包并部署到服务器,它就会失败并显示错误消息

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

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 评论的那样,在兼容的操作系统中,这个问题可以通过安装缺少的必需的通用 C 运行时库来解决( https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows).

As Vitaliy Fedorchenko commented, the problem, in the compatible operating systems, can be solved by installing the missing required Universal C runtime libs ( https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows ).

这篇关于NReco.PdfGenerator.WkHtmlToPdfException:退出代码:-1073741521的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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