What can be the general reason behind the error below:
Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper'.
What can be the general reason behind the error below:
Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper'.
It sounds like you are using Html.RenderAction
and the child action is throwing an exception. Try executing the child action by itself by putting its URL into your address bar.
You've a strongly typed view
i.e.
<%@ Page Title="" Language="C#"
MasterPageFile="~/Views/Shared/Site.Master"
Inherits="System.Web.Mvc.ViewPage<CommunicationResendModel>" %>
but you controller doesn't provide a model instance
i.e.
public ActionResult Resend()
{
return ***View()***;
}
This code gives a better result:
public ActionResult Resend()
{
return **View(new CommunicationResendModel())**;
}
En mi caso me faltaba simplemente desplegar un stored procedure en el destino que efectivamente leía conjuntos de datos para "hijos" de mi modelo. Luego de publicar el SP se corrigió el error. Esto demuestra que el problema no es de MVC, sino de simple despliegue. También podría significar que se intentaba hacer algo con una colección que no existía.
In my case I was missing simply deploy an * stored procedure * on target who actually read data sets for "children" of my model. The error was corrected after of posting SP. This shows that the problem is not MVC, but simple deployment. Could also mean that trying to do something with a collection that does not exist.