Rotativa PDF generation working locally but not on IIS 7

后端 未结 7 1092
难免孤独
难免孤独 2020-12-29 04:02

I have an ASP.NET MVC 5 application. It has a simple form and when the user submits it, the form is stored in the cache and then another controller action is called, this ac

7条回答
  •  长发绾君心
    2020-12-29 04:27

    The accepted answer almost worked for me. I was missing a newer version of the C++ redistributable so installing the old version didn't help.

    The easiest way to find out what you are missing is to run wkhtmltopdf.exe manually. It will either give you console output (if working) or a message box about what's missing.

    I was missing MSVCP140.dll, which is from the VS 2015 redist, available here: https://www.microsoft.com/en-gb/download/details.aspx?id=48145

提交回复
热议问题