-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rotativa.AspNetCore v1.2 and v1.1 ViewAsPdf.BuildFile creates a hanging process to wkhtmltopdf.exe in IIS 8.5 #74
Comments
I had the some problem a few weeks ago. In order to fix this in my case a have to download all static files (css, js, etc) from external sources loaded in my web page and put it at the root folder. Somehow wkhtmltopdf was hanging when calling the external urls to downlaod them. |
@RichardSobreiro I tried using a plain view without a layout, it works locally with IISExpress, but not on IIS 8.5, I get the error below when I manually kill the wkhtmltopdf.exe process on the server, any thoughts on this error? System.Exception |
Call to ViewAsPdf.BuildFile, see code below, using .NET Core 3.1 with either Rotativa.AspNetCore nuget library v1.2 and v1.1 on IIS 8.5 creates a hanging process to wkhtmltopdf.exe
Rotativa.AspNetCore.ViewAsPdf viewAsPdf = new Rotativa.AspNetCore.ViewAsPdf(model);
byte[] pdfData = await viewAsPdf.BuildFile(ControllerContext);
It works as expected locally using IISExpress, but as soon as it is deployed to IIS 8.5, the call hangs on wkhtmltopdf.exe
Thoughts on how to solve this?
The text was updated successfully, but these errors were encountered: