Rotativa PDF generation working locally but not on IIS 7

后端 未结 7 1064
难免孤独
难免孤独 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:35

    I faced the same problem. Even the error logger wasn't logging anything.

    After some research, I tried replacing the wkhtmltopdf.exe with the latest version available in wkhtmltopdf.org website, still no luck.

    Finally copied msvcp120.dll and msvcr120.dll to the folder where I had the excutable and it worked. (There was no need of the latest version of wkhtmltopdf.exe, instead it worked with the version what I got from Nuget.)

    msvcp120.dll and msvcr120.dll were available in the below directory in Windows 7.

    C:\Windows\SysWOW64\

    0 讨论(0)
提交回复
热议问题