NReco PDFGenerator issue

偶尔善良 提交于 2019-12-01 09:02:55

问题


I've been using this tool for about a week, and now, today, it just stopped working. I've reverted the rest of my code back to the previous state and I keep getting the same error.

All that I'm getting from the Exception that is thrown is:

An exception of type 'System.Exception' occurred in NReco.PdfGenerator.dll but was not handled in user code

Additional information: Cannot generate PDF: (exit code: -1073740791)

From the Windows Event Log:

Faulting application name: wkhtmltopdf.exe, version: 0.12.2.1, time stamp: 0x54bd0265

Faulting module name: MSVCR120.dll, version: 12.0.21005.1, time stamp: 0x524f7ce6

Exception code: 0xc0000409

Fault offset: 0x000a7666

Faulting process id: 0xc8c

Faulting application start time: 0x01d0deb1a8d73b2f

Faulting application path: C:*****\bin\wkhtmltopdf.exe

Faulting module path: C:\Windows\SYSTEM32\MSVCR120.dll

Report Id: e8c8bcf0-4aa4-11e5-826d-acb57d145db6

Faulting package full name:

Faulting package-relative application ID:

Any ideas what could be causing this?


回答1:


The reason of this error is not in your code: it seems something changed in your environment and wkhtmltopdf.exe stops working because of missed VC++ 2013 runtime libraries (required for latest v.0.12.2.1).

You can download and install them from Windows Downloads: Visual C++ Redistributable Packages for Visual Studio 2013

PdfGenerator embeds x86 build of wkhtmltopdf and you may install only x86-version of redistributable package ( vcredist_x86.exe ).

--- update ---

For latest wkhtmltopdf 0.12.4 VC++ 2015 runtime libs are needed.



来源:https://stackoverflow.com/questions/32192115/nreco-pdfgenerator-issue

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