Skip to content
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

Problems running Rotativa on IIS6 #26

Closed
rmenezes opened this issue Mar 14, 2013 · 5 comments
Closed

Problems running Rotativa on IIS6 #26

rmenezes opened this issue Mar 14, 2013 · 5 comments

Comments

@rmenezes
Copy link

I'm trying to run my application with IIS6, but I'm getting the Message "Access Denied"

There is any special permission to execute rotativa?

Here is my excepetion:

Access is denied

Description: 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.

Exception Details: System.ComponentModel.Win32Exception: Access is denied

Source Error:

An 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.

Stack Trace:

[Win32Exception (0x80004005): Access is denied]
System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) +2161
System.Diagnostics.Process.Start() +150
Rotativa.WkhtmltopdfDriver.Convert(String wkhtmltopdfPath, String switches, String html) +227
Rotativa.ViewAsPdf.CallTheDriver(ControllerContext context) +803
Rotativa.AsPdfResultBase.BuildPdf(ControllerContext context) +130
Rotativa.AsPdfResultBase.ExecuteResult(ControllerContext context) +19
System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13
System.Web.Mvc.<>c__DisplayClass1c.b__19() +23
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +260 System.Web.Mvc.<>c__DisplayClass1e.<InvokeActionResultWithFilters>b__1b() +19 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +177
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +343
System.Web.Mvc.Controller.ExecuteCore() +116
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +97
System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
System.Web.Mvc.<>c__DisplayClassb.b__5() +37
System.Web.Mvc.Async.<>c__DisplayClass1.b__0() +21
System.Web.Mvc.Async.<>c__DisplayClass81.<BeginSynchronous>b__7(IAsyncResult _) +12 System.Web.Mvc.Async.WrappedAsyncResult1.End() +62
System.Web.Mvc.<>c__DisplayClasse.b__d() +50
System.Web.Mvc.SecurityUtil.b__0(Action f) +7
System.Web.Mvc.SecurityUtil.ProcessInApplicationTrust(Action action) +22
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +60
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +8968077
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184

@malcolmohare
Copy link

I've also encountered the same issue. Both running on a dev machine and published to GoDaddy.

Edit: Tracked the culprit down to having this line in my web.config, trust level="Medium". Commenting out the line restored functionality. Have you successfully implemented Rotativa in a medium trust hosting environment? If so, can you share how you achieved it?

@saboorawan
Copy link

same issue. any fix

@alexandis
Copy link

Just grant execute permission to ApplicationPoolIdentity for exe file

@webgio webgio closed this as completed Nov 18, 2014
@ghost
Copy link

ghost commented Apr 17, 2015

@alexandis. How i do that?

@ghost
Copy link

ghost commented Apr 26, 2015

@alexandis forget it, the problem was I was needing the appropriate VCRedist package. would be very useful detail the requirements on the readme. Someone who has contributed knows better than I the requirements. It 's only a recommendation, the library it's great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants