简体   繁体   中英

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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