{"action":"created","issue":{"url":"https://api.github.com/repos/webgio/Rotativa/issues/23","labels_url":"https://api.github.com/repos/webgio/Rotativa/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/webgio/Rotativa/issues/23/comments","events_url":"https://api.github.com/repos/webgio/Rotativa/issues/23/events","html_url":"https://github.com/webgio/Rotativa/issues/23","id":10610070,"number":23,"title":"Exception when deployed to server","user":{"login":"pauldambra","id":984817,"avatar_url":"https://avatars.githubusercontent.com/u/984817?v=3","gravatar_id":"","url":"https://api.github.com/users/pauldambra","html_url":"https://github.com/pauldambra","followers_url":"https://api.github.com/users/pauldambra/followers","following_url":"https://api.github.com/users/pauldambra/following{/other_user}","gists_url":"https://api.github.com/users/pauldambra/gists{/gist_id}","starred_url":"https://api.github.com/users/pauldambra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pauldambra/subscriptions","organizations_url":"https://api.github.com/users/pauldambra/orgs","repos_url":"https://api.github.com/users/pauldambra/repos","events_url":"https://api.github.com/users/pauldambra/events{/privacy}","received_events_url":"https://api.github.com/users/pauldambra/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":58,"created_at":"2013-02-04T14:28:13Z","updated_at":"2015-04-08T16:08:19Z","closed_at":"2014-11-18T15:42:59Z","body":"Apologies if I'm being slow - I've incorporated Rotativa and it works on my dev machine but when I try to use it on the server I receive the below:\r\n\r\nServer Error in '/' Application.\r\n--------------------------------------------------------------------------------\r\n\r\nUnhandled Execution Error \r\nDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. \r\n\r\nException Details: System.Exception: \r\n\r\nSource Error: \r\n\r\nAn unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  \r\n\r\nStack Trace: \r\n\r\n\r\n[Exception]\r\n   Rotativa.WkhtmltopdfDriver.Convert(String wkhtmltopdfPath, String switches, String html) +822\r\n   Rotativa.ViewAsPdf.CallTheDriver(ControllerContext context) +1027\r\n   Rotativa.AsPdfResultBase.BuildPdf(ControllerContext context) +201\r\n   Rotativa.AsPdfResultBase.ExecuteResult(ControllerContext context) +27\r\n   Castle.Proxies.ControllerActionInvokerProxy.InvokeActionResult_callback(ControllerContext controllerContext, ActionResult actionResult) +21\r\n   Castle.DynamicProxy.AbstractInvocation.Proceed() +69\r\n   Glimpse.Mvc3.Interceptor.InvokeActionResultInterceptor.Intercept(IInvocation invocation) +431\r\n   Castle.DynamicProxy.AbstractInvocation.Proceed() +204\r\n   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +33\r\n   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613\r\n   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +263\r\n   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +729\r\n   System.Web.Mvc.Controller.ExecuteCore() +162\r\n   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +159\r\n   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +62\r\n   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +15\r\n   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1656\r\n   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +540\r\n \r\nServer is Server 2008 R2 and application is dotNet 4.5\r\n\r\nCall to Rotativa is\r\n\r\n return new ViewAsPdf(\"View\", \"~/Views/StaffExpenses/_ViewLayout.cshtml\", claim)\r\n                           {\r\n                               PageSize = Size.A4,\r\n                               PageOrientation = Orientation.Landscape,\r\n                               PageMargins = {Left = 0, Right = 0, Top = 0, Bottom = 0}\r\n                           };\r\n\r\nBoth Authenticated Users and the app pool have execute permissions on the files in the Rotativa folder which has deployed to the server with the application.\r\n\r\nProject uses Windows Authentication"},"comment":{"url":"https://api.github.com/repos/webgio/Rotativa/issues/comments/90961412","html_url":"https://github.com/webgio/Rotativa/issues/23#issuecomment-90961412","issue_url":"https://api.github.com/repos/webgio/Rotativa/issues/23","id":90961412,"user":{"login":"0lorak0","id":1058810,"avatar_url":"https://avatars.githubusercontent.com/u/1058810?v=3","gravatar_id":"","url":"https://api.github.com/users/0lorak0","html_url":"https://github.com/0lorak0","followers_url":"https://api.github.com/users/0lorak0/followers","following_url":"https://api.github.com/users/0lorak0/following{/other_user}","gists_url":"https://api.github.com/users/0lorak0/gists{/gist_id}","starred_url":"https://api.github.com/users/0lorak0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0lorak0/subscriptions","organizations_url":"https://api.github.com/users/0lorak0/orgs","repos_url":"https://api.github.com/users/0lorak0/repos","events_url":"https://api.github.com/users/0lorak0/events{/privacy}","received_events_url":"https://api.github.com/users/0lorak0/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T16:08:19Z","updated_at":"2015-04-08T16:08:19Z","body":"I was having the same error as the OP with Rotativa 1.6.4 Nuget package.  I have another project that also has Rotativa, but with the 1.6.3-beta version that was not giving me errors on production.  I just replaced the 1.6.4 wkhtmltopdf.exe version with the 1.6.3-beta version and now I am not receiving the OP's error."}}