Rotativa.AspNetCore: System.Exception at Rotativa.NetCore.WkhtmlDriver.Convert(String wkhtmlPath, String switches, String html, String wkhtmlExe) in /Users/codeflow/Downloads/Rotativa.NetCore-master/Rotativa.NetCore/WkhtmlDriver.cs:line 78
If try to run the Sample, and click on “Test Pdf Generation”, I get following exception:
System.Exception at Rotativa.NetCore.WkhtmlDriver.Convert(String wkhtmlPath, String switches, String html, String wkhtmlExe) in /Users/codeflow/Downloads/Rotativa.NetCore-master/Rotativa.NetCore/WkhtmlDriver.cs:line 78 at Rotativa.NetCore.WkhtmltopdfDriver.Convert(String wkhtmltopdfPath, String switches) in /Users/codeflow/Downloads/Rotativa.NetCore-master/Rotativa.NetCore/WkhtmltopdfDriver.cs:line 27 at Rotativa.NetCore.AsPdfResultBase.WkhtmlConvert(String switches) in /Users/codeflow/Downloads/Rotativa.NetCore-master/Rotativa.NetCore/AsPdfResultBase.cs:line 79 at Rotativa.NetCore.AsResultBase.CallTheDriver(ActionContext context) in /Users/codeflow/Downloads/Rotativa.NetCore-master/Rotativa.NetCore/AsResultBase.cs:line 185 at Rotativa.NetCore.AsResultBase.BuildFile(ActionContext context) in /Users/codeflow/Downloads/Rotativa.NetCore-master/Rotativa.NetCore/AsResultBase.cs:line 205 at Rotativa.NetCore.AsResultBase.ExecuteResult(ActionContext context) in /Users/codeflow/Downloads/Rotativa.NetCore-master/Rotativa.NetCore/AsResultBase.cs:line 217 at Microsoft.AspNetCore.Mvc.ActionResult.ExecuteResultAsync(ActionContext context) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeResultAsync>d__30.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextResultFilterAsync>d__28.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ResultExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextResourceFilter>d__22.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ResourceExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeAsync>d__20.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Builder.RouterMiddleware.<Invoke>d__4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.<Invoke>d__7.MoveNext()
Is there a workaround? Inside the bin/debug/myapp/rotativa I’ve the required files/ddl’s (wkhtmltoimage.exe, wkhtmltopdf.exe, wkhtmltox.dll).
About this issue
- Original URL
- State: open
- Created 6 years ago
- Comments: 21 (3 by maintainers)
I had confirmation that it works. I’ll ping the guy to ask him. Let you know