Error executing child request for handler System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper'

2708
Views
1
Answers

I am getting this error when I deploy my MVC application into Production. Everything worked fine in DEV and QA.

Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper'.

and the stack trace

 Source
   
System.Web

   
Target site
   
Void ExecuteInternal(System.Web.IHttpHandler, System.IO.TextWriter, Boolean, Boolean, System.Web.VirtualPath,
 
System.Web.VirtualPath, System.String, System.Exception, System.String)

   
Stack trace
       at
System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage,
VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
       at
System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage)
       at
System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm)
       at
System.Web.HttpServerUtilityWrapper.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm)
       at
System.Web.Mvc.ViewPage.RenderView(ViewContext viewContext)
       at
System.Web.Mvc.WebFormView.RenderViewPage(ViewContext context, ViewPage page)
       at
System.Web.Mvc.WebFormView.Render(ViewContext viewContext, TextWriter writer)
       at
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context)
       at
System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult)
       at
System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName)
       at
System.Web.Mvc.Controller.ExecuteCore()
       at
System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext)
       at
System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext)
       at
System.Web.Mvc.MvcHandler.<>c__DisplayClass8.b__4()
       at
System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.b__0()
       at
System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8`1.b__7(IAsyncResult _)
       at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`
1.End()
       at
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult)
       at
System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
       at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
edit | flag
Mike Carpenter
Asked on: Feb 22, 2012 at 10:06PM

1 Answers

133
3
133

Possible causes for this error:

1.If your controller doesn't provide a model instance i.e: the model cant be instantiated.
2.You might be missing some stored procedure which returns data to your controller during deployment.
3.Check your connection strings in web.config. It should be in acceptable format.
4.Some how the application cannot initialize database connection.

Tweaking the connection string fixed this issue for me.

edit | flag
Gokul A
Answered on: Feb 22, 2012 at 10:18PM

Post your Answer

Search

Welcome to Ask Amoeba!
This is 100% free and interactive site for sharing professional Questions and Answers, Opensource projects, Interview questions.
Learners, beginners, Experts stop and share your knowledge and ideas!

Browse Categories

Browse Tags