NReco.PdfGenerator.WkHtmlToPdfException: exit code: -1073741521

安稳与你 提交于 2021-01-29 18:39:56

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/52980828/nreco-pdfgenerator-wkhtmltopdfexception-exit-code-1073741521

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!