Error executing child request for handler

I have an MVC 4 view where I render the following actions @{ Html.RenderAction("Index", "Logo"); Html.RenderAction("Index", "MainMenu"); } I have a form on my view which is filled out and

I have an MVC 4 view where I render the following actions

@{
    Html.RenderAction("Index", "Logo");
    Html.RenderAction("Index", "MainMenu");
}

I have a form on my view which is filled out and posted to the controller. In the controller I perform some tasks and then send the model back to my view

[HttpPost]
public ActionResult Index(ManageAdministratorModel manageAdministratorModel)
{
     // I save some of the fields to the database here.
     return View(manageAdministratorModel);
}

When I’m redirected to the view I receive the following error

Error executing child request for handler ‘System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper’.

on this line

Html.RenderAction("Index", "Logo");

Any idea why this is happening?

tereško's user avatar

tereško

57.7k25 gold badges98 silver badges149 bronze badges

asked Oct 9, 2013 at 12:57

Andre Lombaard's user avatar

Andre LombaardAndre Lombaard

6,90513 gold badges55 silver badges96 bronze badges

2

Ok I found the problem, hopefully this will help someone in future.

The controllers for the partial views each contained the [HttpGet] attribute. For example

[HttpGet]
public ActionResult Index()
{
}

I remove the attribute from both controllers

public ActionResult Index()
{
}

and everything is now working.

answered Oct 9, 2013 at 14:08

Andre Lombaard's user avatar

Andre LombaardAndre Lombaard

6,90513 gold badges55 silver badges96 bronze badges

5

I just got this error occurring in my razor when my partial view had a code formatting error in it.

If you click ‘Continue’ to get past the error, you’ll see the actual error message displayed in the browser window that you loaded it from.

Correct the error in the partial view and it’ll work!

answered Dec 19, 2014 at 16:27

Luke's user avatar

2

Replace:

return View(manageAdministratorModel);

with:

return PartialView(manageAdministratorModel);

otherwise you might be ending in an infinite loop because you are rendering a view which is attempting to render a view which is attempting to render a view, …

Also you might need to remove the [HttpPost] attribute from your child action.

answered Oct 9, 2013 at 13:05

Darin Dimitrov's user avatar

Darin DimitrovDarin Dimitrov

1.0m267 gold badges3271 silver badges2921 bronze badges

5

The example of «Child Action Only» is:

     public class FiltersController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        [ChildActionOnly]
        public ActionResult Departments()
        {
            string s = "Mahi and kallu";
            return View(s);
        }

    }

**for this am creating 2 views** 
1) Index:

    <html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div>
         @Html.Partial("Departments","Filters")

</body>
</html>
**and for Departments View:**
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Departments</title>
</head>
<body>
    <div>
       @Model      
    </div>
</body>
</html>


the ***childactions*** can be rendered with the help of "Partial" keyword.

answered Oct 16, 2015 at 12:17

mtrivedi's user avatar

I had the same error. It began when I changed an action to another controller, so when running the program couldn’t find the view in the folder. So if you move an action to another controller, also move the view to the respective folder’s controller.

Brian Leeming's user avatar

answered May 12, 2016 at 14:34

Jahiron Rodriguez's user avatar

Get rid of the layout @{ Layout = null; } in the child view.

Laurel's user avatar

Laurel

5,90314 gold badges30 silver badges56 bronze badges

answered Jul 30, 2016 at 22:25

moral's user avatar

moralmoral

1501 silver badge6 bronze badges

1

I was facing the same issue but I put [HTTPGet] attribute over the function name and it worked for me.

[HttpGet]
//for Filter parital view
[ChildActionOnly]
public ActionResult Filter()
{ 
  // Your code will come here.
}

answered Oct 15, 2016 at 5:58

Fox Eyes's user avatar

I had exactly the same problem, and because I was using attribute routing, the inner exception error message was:

No matching action was found on controller ''. 
This can happen when a controller uses RouteAttribute for routing, 
but no action on that controller matches the request.

Remove the [HttpGet] attributes from action methods called by Html.Action() and it works. Nothing to do with routing.

answered Oct 20, 2015 at 21:48

nmit026's user avatar

nmit026nmit026

2,7842 gold badges25 silver badges50 bronze badges

I got this error, but my problem was diferent.
To see what is the error about, involve the line you get the error inside a try catch code, like this:

 try 
    {           
         @Html.RenderAction("Index", "Logo", new {id = Model.id});
    }
    catch (Exception e)
    {
        throw;
    }    

Execute it with a break point at throw line and check the inner exception of the ‘e’.
My problem was that I’d changed the parameter name on my Controller and forgot to change it on my View.

It’s easier to get the error using try catch.

answered Jul 29, 2016 at 16:31

Lucas's user avatar

LucasLucas

5897 silver badges20 bronze badges

I had this problem, It could happen because render engine can’t find any view (corresponding to the name that is given in acton) I’d given wrong name of view (I mistakenly had given action name instead of view name) when I return view name and view model using PartialView() method, I corrected my view name and it worked fine

answered Feb 7, 2017 at 6:53

Code_Worm's user avatar

Code_WormCode_Worm

3,8692 gold badges32 silver badges32 bronze badges

This happened to me, because I was calling the view from different areas.

The view I wanted to call was not within an area, so when calling it from outside of all areas a call like

@Html.RenderAction("Index", "Logo");

would work without problems.

But when I wanted that same view called from another view that was inside an area, I would have to add some additional information to the call to make it explicit:

@Html.RenderAction("Index", "Logo", new { area = "" });

answered Mar 20, 2018 at 10:38

DrCopyPaste's user avatar

DrCopyPasteDrCopyPaste

3,9931 gold badge21 silver badges56 bronze badges

In my case, I added the following code into Global.asax.cs:

protected void Application_Error(object sender, EventArgs e)
{
    var ex = Server.GetLastError();
    ...
}

Then I added a break point there and see the ex’s InnerException is the SQL DB Connection error. So I replaced my Web.config file with my local development one with the correct connection string, and the problem is gone.

answered Sep 29, 2019 at 19:57

wcb1's user avatar

wcb1wcb1

6661 gold badge7 silver badges6 bronze badges

  • Remove From My Forums
  • Question

  • User-1842880510 posted

    I have a ASP.Net MVC 4 EF 5 with a target Framework of .Net 4.5.  I build and run the application in debug using IIS Express 8.0.  I published the app and deployed it  on a test machine running Windows 7 using IIS Express 8.0.  The app
    has run fine in debug and fine in the deployed mode.  Today I decided to deploy this published app to virtual machine on my laptop running Windows 2008 R2, using IIS 7.5 .  The same app that runs fine on IIS Express 8.0 now throws an error on
    two pages reporting the error:  Error executing child request for handler ‘System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper’  Because it is using the mvc shared view Error.cshtml I am not getting a stack trace.

    The stuff on stackoverflow states that this happens when a partial view is calling itself.  I checked the one partial view that is called by html.partialView and it is not calling itself.  I checked the two partial views being called by RenderActions,
    and also they are not calling themselves.  Anyway if they were callingthemselves then how could it work in IIS Express.

    We were going to deploy this to the Data Center’s Windows 2008 R2 servers next week.  So I would like to get some advice on what this is all about.

Answers

  • User-1842880510 posted

    I deployed the application to the real test server, and this error did not show up.  I think it must be something that has not been installed on the VM server, (since it has no connection to the internet and can’t get windows updates).

    • Marked as answer by

      Thursday, October 7, 2021 12:00 AM

I’m using MvcSiteMap 5.0 Core. On two pages that I’m generating text/excel files on, I get the exception «Error executing child request for handler ‘System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper’.» When the file is ready to be downloaded. I have Googled the error and found that sometimes ThreadAbortException is thrown so I have caught that in the try/catch block. I can’t find much more on this exception. Any help would be great.

Some images of my code and such.
Location of Exception
https://www.dropbox.com/s/7p0oqc2nwzwm9fe/MenuHelper.png
View Code
https://www.dropbox.com/s/91gk8qrtszzeogu/View.png
SiteMap xml file
https://www.dropbox.com/s/qtehw8v5jdy9htt/SiteMap.png

Please let me know what other information may be needed, to help me.

Full Exception
System.Web.HttpException was unhandled by user code
HResult=-2147467259
Message=Error executing child request for handler ‘System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerWrapper’.
Source=System.Web
ErrorCode=-2147467259
WebEventCode=0
StackTrace:
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.ViewUserControl.RenderViewAndRestoreContentType(ViewPage containerPage, ViewContext viewContext)
at System.Web.Mvc.ViewUserControl.RenderView(ViewContext viewContext)
at System.Web.Mvc.WebFormView.RenderViewUserControl(ViewContext context, ViewUserControl control)
at System.Web.Mvc.WebFormView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)
at System.Web.Mvc.Html.TemplateHelpers.ExecuteTemplate(HtmlHelper html, ViewDataDictionary viewData, String templateName, DataBoundControlMode mode, GetViewNamesDelegate getViewNames, GetDefaultActionsDelegate getDefaultActions)
at System.Web.Mvc.Html.TemplateHelpers.TemplateHelper(HtmlHelper html, ModelMetadata metadata, String htmlFieldName, String templateName, DataBoundControlMode mode, Object additionalViewData, ExecuteTemplateDelegate executeTemplate)
at System.Web.Mvc.Html.TemplateHelpers.TemplateHelper(HtmlHelper html, ModelMetadata metadata, String htmlFieldName, String templateName, DataBoundControlMode mode, Object additionalViewData)
at System.Web.Mvc.Html.TemplateHelpers.TemplateFor[TContainer,TValue](HtmlHelper1 html, Expression1 expression, String templateName, String htmlFieldName, DataBoundControlMode mode, Object additionalViewData, TemplateHelperDelegate templateHelper)
at System.Web.Mvc.Html.TemplateHelpers.TemplateFor[TContainer,TValue](HtmlHelper1 html, Expression1 expression, String templateName, String htmlFieldName, DataBoundControlMode mode, Object additionalViewData)
at System.Web.Mvc.Html.DisplayExtensions.DisplayFor[TModel,TValue](HtmlHelper1 html, Expression1 expression)
at ASP._Page_Views_Shared_DisplayTemplates_MenuHelperModel_cshtml.Execute() in c:CodeDataServicesCompliancetrunkWebViewsSharedDisplayTemplatesMenuHelperModel.cshtml:line 8
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance)
at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer)
at System.Web.Mvc.Html.TemplateHelpers.ExecuteTemplate(HtmlHelper html, ViewDataDictionary viewData, String templateName, DataBoundControlMode mode, GetViewNamesDelegate getViewNames, GetDefaultActionsDelegate getDefaultActions)
at System.Web.Mvc.Html.TemplateHelpers.TemplateHelper(HtmlHelper html, ModelMetadata metadata, String htmlFieldName, String templateName, DataBoundControlMode mode, Object additionalViewData, ExecuteTemplateDelegate executeTemplate)
at System.Web.Mvc.Html.TemplateHelpers.TemplateHelper(HtmlHelper html, ModelMetadata metadata, String htmlFieldName, String templateName, DataBoundControlMode mode, Object additionalViewData)
at System.Web.Mvc.Html.TemplateHelpers.TemplateFor[TContainer,TValue](HtmlHelper1 html, Expression1 expression, String templateName, String htmlFieldName, DataBoundControlMode mode, Object additionalViewData, TemplateHelperDelegate templateHelper)
at System.Web.Mvc.Html.TemplateHelpers.TemplateFor[TContainer,TValue](HtmlHelper1 html, Expression1 expression, String templateName, String htmlFieldName, DataBoundControlMode mode, Object additionalViewData)
at System.Web.Mvc.Html.DisplayExtensions.DisplayFor[TModel,TValue](HtmlHelper1 html, Expression1 expression, String templateName)
at MvcSiteMapProvider.Web.Html.MenuHelper.Menu(MvcSiteMapHtmlHelper helper, String templateName, ISiteMapNode startingNode, Boolean startingNodeInChildLevel, Boolean showStartingNode, Int32 maxDepth, Boolean drillDownToCurrent, Boolean visibilityAffectsDescendants, SourceMetadataDictionary sourceMetadata)
at MvcSiteMapProvider.Web.Html.MenuHelper.Menu(MvcSiteMapHtmlHelper helper, String templateName, ISiteMapNode startingNode, Boolean startingNodeInChildLevel, Boolean showStartingNode, Int32 maxDepth, Boolean drillDownToCurrent, SourceMetadataDictionary sourceMetadata)
at MvcSiteMapProvider.Web.Html.MenuHelper.Menu(MvcSiteMapHtmlHelper helper, String templateName, ISiteMapNode startingNode, Boolean startingNodeInChildLevel, Boolean showStartingNode, Int32 maxDepth, Boolean drillDownToCurrent)
at MvcSiteMapProvider.Web.Html.MenuHelper.Menu(MvcSiteMapHtmlHelper helper, ISiteMapNode startingNode, Boolean startingNodeInChildLevel, Boolean showStartingNode, Int32 maxDepth, Boolean drillDownToCurrent)
at MvcSiteMapProvider.Web.Html.MenuHelper.Menu(MvcSiteMapHtmlHelper helper)
at ASP._Page_Views_Shared__Layout_cshtml.Execute() in c:CodeDataServicesCompliancetrunkWebViewsShared_Layout.cshtml:line 22
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
at System.Web.Mvc.WebViewPage.ExecutePageHierarchy()
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer)
at System.Web.WebPages.WebPageBase.<>c__DisplayClass7.b__6(TextWriter writer)
at System.Web.WebPages.HelperResult.WriteTo(TextWriter writer)
at System.Web.WebPages.WebPageExecutingBase.WriteTo(TextWriter writer, HelperResult content)
at System.Web.WebPages.WebPageBase.Write(HelperResult result)
at System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action1 body) at System.Web.WebPages.WebPageBase.PopContext() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) at System.Web.Mvc.BuildManagerCompiledView.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.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult)
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) InnerException: System.Web.HttpException HResult=-2147467259 Message=Server cannot set content type after HTTP headers have been sent. Source=System.Web ErrorCode=-2147467259 WebEventCode=0 StackTrace: at System.Web.HttpResponse.set_ContentType(String value) at System.Web.UI.Page.SetIntrinsics(HttpContext context, Boolean allowAsync) at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.Mvc.ViewPage.ProcessRequest(HttpContext context) at System.Web.Mvc.ViewUserControl.ViewUserControlContainerPage.ProcessRequest(HttpContext context) at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.<>c__DisplayClass1.<ProcessRequest>b__0() at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.<>c__DisplayClass4.<Wrap>b__3() at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap[TResult](Func1 func)
at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap(Action action)
at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.ProcessRequest(HttpContext context)
at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
InnerException:

Всем привет! Раз 10 в день получаю такую ошибку:

Ошибка выполнения дочернего запроса для дескриптора ‘System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpH andlerAsyncWrapper’.

в System.Web.HttpServerUtility.ExecuteInternal(IHttp Handler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) в System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage) в System.Web.HttpServerUtilityWrapper.Execute(IHttpH andler handler, TextWriter writer, Boolean preserveForm) в System.Web.Mvc.Html.ChildActionExtensions.ActionHe lper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter) в System.Web.Mvc.Html.ChildActionExtensions.RenderAc tion(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues) в ASP._Page_Views_Shared__Layout_cshtml.Execute() в e:wwwsite.comViewsShared_Layout.cshtml:строка 34 в System.Web.WebPages.WebPageBase.ExecutePageHierarc hy() в System.Web.Mvc.WebViewPage.ExecutePageHierarchy() в System.Web.WebPages.WebPageBase.ExecutePageHierarc hy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) в System.Web.WebPages.WebPageBase.RenderSurrounding( String partialViewName, Action`1 body) в System.Web.WebPages.WebPageBase.PopContext() в System.Web.Mvc.ViewResultBase.ExecuteResult(Contro llerContext context) в System.Web.Mvc.Async.AsyncControllerActionInvoker. <>c__DisplayClass21.b__1e(IAsyncResult asyncResult) в System.Web.Mvc.Controller.b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) в System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsy ncVoid`1.CallEndDelegate(IAsyncResult asyncResult) в System.Web.Mvc.Controller.EndExecuteCore(IAsyncRes ult asyncResult) в System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsy ncVoid`1.CallEndDelegate(IAsyncResult asyncResult) в System.Web.Mvc.MvcHandler.b__5(IAsyncResult asyncResult, ProcessRequestState innerState) в System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsy ncVoid`1.CallEndDelegate(IAsyncResult asyncResult) в System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e() в System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously)

в файле _Layout.cshtml у меня вызов шапки — @{Html.RenderAction(«Header»);}

в шапке чисто html

контроллер

C#
1
2
3
4
  public ActionResult Header()
        {           
            return PartialView();
        }

пробовал в вью прописать:
@{
Layout = null;
}

ошибки все равно сыпятся.

Куда можно копнть?

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь

Posted on
11:58 PM
by
Sachin Kalia

Error-Messages

Hi Folks

I encountered an error during an implementation of ChildActionOnly attribute in a MVC application .This error occurs when you don’t specified an ChildActionOnly attribute on an action of controller.

You can specified an action at View level as shown below :

Index.cshtml

 @Html.Action("ChildAction", "Home", new { param= "first" })

While the code given below placed at action level.

Note: I didn’t decorated the below action with ChildActionOnly.

HomeController:

   1:   public ActionResult ChildAction(string param)
   2:          {
   3:              ViewBag.Message = "Child Action called. "+ param;
   4:              return View();
   5:          }

and I decorated an action with  NonAction attribute as shown below:”

   1:   [NonAction]
   2:          public ActionResult ChildAction(string param)
   3:          {
   4:              ViewBag.Message = "Child Action called. "+ param;
   5:              return View();
   6:          }

an error prompts at View level:

image

To overcome on error shown above ,Kindly decorate action with childActionOnly attribute as depicted below in image:

   1:  [ChildActionOnly]
   2:         public ActionResult ChildAction(string param)
   3:         {
   4:             ViewBag.Message = "Child Action called. "+ param;
   5:             return View();
   6:         }
   7:   

Note: This is one of cause to this error.

To know more about MVC please go through with given below link.

MVC Articles
Enjoy Coding and Reading Smile

Categories:

MVC

mylogin page is a partialview . and i use @html.Action(«LogOn»)

but it can’t in my Logon action ,redirect to «mainIndex» . and says :

error executing child request for handler 'system.Web.HttpHandlerUtil+serverExecuteHttphandlerAsynWrapper

i changed @html.Action(«LogOn») to @{html.RenderAction («LogOn»)} , but didn’t diffrent . and changed to @{Html.partialView(«LogOn»)} but the error :

The model item passed into the dictionary is of type 'System.String', but this dictionary requires a model item of type 'MyProject.Models.UsersClass+LogOn'.

MY CODE:

[HttpGet]
       public ActionResult LogOn(String returnUrl)
        {

       using (var db = new pakalaContext())
       {
           UsersClass.LogOn AllFeatureToLog = new UsersClass.LogOn();

           if (User.Identity.IsAuthenticated) 
           {
               MyClass obj = new MyClass();
               if (obj.shouldRedirect(returnUrl))
               {
                   return Redirect(returnUrl);
               }
               return Redirect(FormsAuthentication.DefaultUrl);
           }

           return PartialView(AllFeatureToLog);
       }
   }



   public MyProject.Models.AccountModels.ControlUsers MembershipService { get; set; }

   [HttpPost]
   public ActionResult LogOn(UsersClass.LogOn loginInfo, string returnUrl)
   {


       if (this.ModelState.IsValid)
       {

           if (MembershipService.ValidateUser(loginInfo.usernam, loginInfo.password))
               {
               FormsAuthentication.SetAuthCookie(loginInfo.usernam,   loginInfo.RememberMe);
               MyClass obj1 = new MyClass();
               if (obj1.shouldRedirect(returnUrl))
               {
                   return Redirect(returnUrl);
               }
               else
               {
                   return RedirectToAction("MainIndex", "Home");
               }
                               }

           else
           {
               this.ModelState.AddModelError("LoginError", "incorrec pass or username");

           }
       }



       return PartialView(loginInfo);
   }


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject,
20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8
+1 (416) 849-8900

  • Home >
  • Forums >
  • General >
  • General Support >
  • Error ! : Error executing child request for handler ‘System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper’.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.

Avatar

  • Total Posts: 19
  • Karma: 133
  • Joined: 9/7/2010
  • Location: Russia

the user can’t login to  basket   ( NopCommerce 3.0)

please help.

Error executing child request for handler ‘System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper’.

System.Web.HttpException (0x80004005): Error executing child request for handler ‘System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper’. —> Nop.Core.NopException: Shipping rate computation method could not be loaded at Nop.Services.Orders.OrderTotalCalculationService.GetShoppingCartShippingTotal(IList`1 cart, Boolean includingTax, Decimal& taxRate, Discount& appliedDiscount) at Nop.Services.Orders.OrderTotalCalculationService.GetShoppingCartShippingTotal(IList`1 cart, Boolean includingTax, Decimal& taxRate) at Nop.Services.Orders.OrderTotalCalculationService.GetShoppingCartShippingTotal(IList`1 cart, Boolean includingTax) at Nop.Services.Orders.OrderTotalCalculationService.GetShoppingCartShippingTotal(IList`1 cart) at Nop.Web.Controllers.ShoppingCartController.OrderTotals(Boolean isEditable) at lambda_method(Closure , ControllerBase , Object[] ) at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41() at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.<BeginInvokeAction>b__20() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) at System.Web.Mvc.Controller.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) 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.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerAsyncWrapper.<>c__DisplayClassa.<EndProcessRequest>b__9() at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.<>c__DisplayClass4.<Wrap>b__3() at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap[TResult](Func`1 func) at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap(Action action) at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerAsyncWrapper.EndProcessRequest(IAsyncResult result) 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.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.Html.ChildActionExtensions.ActionHelper(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues, TextWriter textWriter) at System.Web.Mvc.Html.ChildActionExtensions.Action(HtmlHelper htmlHelper, String actionName, String controllerName, RouteValueDictionary routeValues) at System.Web.Mvc.Html.ChildActionExtensions.Action(HtmlHelper htmlHelper, String actionName, String controllerName, Object routeValues) at ASP._Page_Views_ShoppingCart_OrderSummary_cshtml.Execute() in c:HostingSpacesioue95rpsurgstore.ruwwwrootnc_30ViewsShoppingCartOrderSummary.cshtml:line 192 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) at System.Web.Mvc.HtmlHelper.RenderPartialInternal(String partialViewName, ViewDataDictionary viewData, Object model, TextWriter writer, ViewEngineCollection viewEngineCollection) at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) at System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model) at ASP._Page_Views_ShoppingCart_Cart_cshtml.Execute() in c:HostingSpacesioue95rpsurgstore.ruwwwrootnc_30ViewsShoppingCartCart.cshtml:line 16 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.Mvc.WebViewPage.ExecutePageHierarchy() at System.Web.WebPages.StartPage.RunPage() at System.Web.WebPages.StartPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) at System.Web.Mvc.BuildManagerCompiledView.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.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass1a.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<>c__DisplayClass2a.<BeginInvokeAction>b__20() at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) at System.Web.Mvc.Controller.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End() at System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) at System.Web.Mvc.MvcHandler.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) 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

Avatar

  • Total Posts: 23
  • Karma: 163
  • Joined: 11/30/2010
  • Location: United Kingdom

Just to add to this, I am having the same problem, but the error is related to a missing property on our model.

The big problem is that our model has the said property, and then at some point, the MVC system seems to indicate that the property doesn’t exist.

I had a look in the source to MVC 3 RTM, and found that everything revolves around the activity in the ChildActionMVCHandler which is derived from MVCHandler and uses the base classes behaviour. None of this could be causing the fault however, so the ServerExecuteHttpHandlerAsyncWrapper is somewhat of a red herring.

I can’t debug all of this, because can only find source code for MVC 3 V3.0.0.0 and V5.0.0.0 — I would love to know where I can download version 3.0.20105, if anyone has any clue as to where to get the source code, I may be able to get to the bottom of the Framework or Environment issues that cause this intermittent error.

[UPDATE] I altered my code so that I was using @Html.Partial instead of @Html.Action — then I cleared the view file and called without a model reference, all whilst the prevailing (permanent until app recycle) condition is happening.

I have found that I still get the error that a «CategoryNavigationModel.get_subCategories» is missing, even though the view file is empty, and references no strongly typed model. This means that the MVC framework has stuck in so far as this file is concerned, and no longer recompiles it.

I can’t debug through the call to @Html.Partial, so I really can’t track this fault down. Any help with it’s solution would be very much appreciated. Including how I can debug it.

Kind Regards,

Mark Rabjohn
Integrated Arts Ltd

Avatar

  • Total Posts: 23
  • Karma: 163
  • Joined: 11/30/2010
  • Location: United Kingdom

Hi,

I’ve just come in to work this morning, and found that the error still exists despite refactoring my code.

Last week, I presumed that intrinsic difficulties in performing @Html.Action may be to blame, so I put all of my backend logic into a Plain old class and used it’s methods from my RAZOR script. This allowed me to change the code to a @Html.Partial.

My Class was called CategoryNavigationTools. The error is now pure and simple — Could not load type ‘Nop.IA.CategoryNavigationTools’ from assembly ‘Nop.Web, Version=2.6.5.0’.

By by reckoning, this means that part of the type information has become either unloaded, or otherwise masked from the RAZOR compilation process.

How is this possible? Maybe the plugin manager? (but this isn’t a plugin)

How can I find out which bit of my code might be triggering craziness in the RAZOR compiler?

Mark Rabjohn
Integrated Arts Ltd

Avatar

  • Total Posts: 23
  • Karma: 163
  • Joined: 11/30/2010
  • Location: United Kingdom

Hi,

I have found out what the problem is with our NopCommerce 2.65

In short, our plugins were outputting all of their references into their Plugin folder, and the Plugin Manager was loading them all.

In effect, because we had registered Nop.Web, and then continued to customise the real Nop.Web, the version in our plugin folder ran out of kilter and lacked any of our customisations.

It appears that Razor prefers to use the version loaded by the plugin manager, and this explains all of the problems that we had. Our solution is now stable and quick.

Hope this helps someone with a similar problem.

Kind Regards,
Mark Rabjohn
Integrated Arts Ltd

Avatar

  • Total Posts: 19
  • Karma: 133
  • Joined: 9/7/2010
  • Location: Russia

I activated one of the » Shipping Rate Computation Methods» after that it worked

Avatar

  • Total Posts: 5
  • Karma: 35
  • Joined: 8/6/2013
  • Location: France

mrabjohn wrote:

Hi,

I have found out what the problem is with our NopCommerce 2.65

In short, our plugins were outputting all of their references into their Plugin folder, and the Plugin Manager was loading them all.

In effect, because we had registered Nop.Web, and then continued to customise the real Nop.Web, the version in our plugin folder ran out of kilter and lacked any of our customisations.

It appears that Razor prefers to use the version loaded by the plugin manager, and this explains all of the problems that we had. Our solution is now stable and quick.

Hope this helps someone with a similar problem.

Kind Regards,
Mark Rabjohn
Integrated Arts Ltd

Hi,

I’ve a problem a little bit similar.
When I deploy my project, there is no problem.
But, after some hours without any change, some functions are unavailable from my Nop.Services.dll (this new functionality coded by me work well before)

If I download the Nop.Web.dll, and re-upload it, it works again !
But in few hours, it’s going to crash again.

I’ve already have this problem with the Nop.Framework.dll. I’ve added an entityName in the GetRouteData, it work well, and few hours later, it crashes …

I’ve take a look at my «bin/» folder in the «Plugins» folder, like mrabjohn suggest it, but there is no Nop.Services.dll and no Nop.Framework.dll

Any idea ?
Thanks

Avatar

  • Total Posts: 190
  • Karma: 1836
  • Joined: 6/14/2012
  • Location: United States

plugins are only temporarily copied to Plugins/bin, I think. If you are having issues with plugins copying references, the offending dlls would be in the plugins folders. For example, Plugins/MyPlugin/offending.dll

Avatar

  • Total Posts: 5
  • Karma: 35
  • Joined: 8/6/2013
  • Location: France

Yeah.

I’ve made my own plugins.

So its reference made copy in local /bin/folder. So the Nop.Services.dll and Nop.framework.dll where too old to work with my newcode.

Thx

Avatar

  • Total Posts: 1
  • Karma: 15
  • Joined: 5/24/2010
  • Location: Turkey

Placing @using Nop.Web.Framework; inside a custom view solved this problem for me.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.

Still have questions or need help?

Я не могу понять, почему я могу получить эту ошибку. Это происходит при вызове ajax.

Любая помощь приветствуется. Спасибо!

— 6 21:2010:6 — System.Web.HttpException (09×10): ошибка при выполнении дочернего запроса для обработчика System.Web.Mvc.HttpHandlerUtil + ServerExecuteHttpHandlerWrapper. —> System.Web.HttpUnhandledException (0x80004005): возникло исключение типа System.Web.HttpUnhandledException. —> System.Web.HttpException (0x80004005): OutputStream недоступен при использовании настраиваемого TextWriter. в System.Web.HttpResponse.get_OutputStream () в AjaxControlToolkit.ToolkitScriptManager.OutputCombinedScriptFile (контекст HttpContext) в C: AjaxBuild Ajax Server AjaxControlToolkitager Toolkitolkit. в C: AjaxBuild Ajax Server AjaxControlToolkit ToolkitScriptManager ToolkitScriptManager.cs: строка 0 в System.Web.UI.Control.InitRecursive (Control namingContainer) в System.Web.UI.Control.InitRecursive (Control n .Web.UI.Control.InitRecursive (Control namingContainer) в System.Web.UI.Control.InitRecursive (Control namingContainer) в System.Web.UI.Page.ProcessRequestMain (Boolean includeStagesBeforeAsync, Boolean includeStagesBeforeAsync, Boolean includePointagesAfterIAs.Web Page.HandleError (Exception e) в System.Web.UI.Page.ProcessRequestMain (логическое includeStagesBeforeAsyncPoint, логическое includeStagesAfterAsyncPoint) в System.Web.UI.Page.ProcessRequest (логическое includeStagesBef oreAsyncPoint, Boolean includeStagesAfterAsyncPoint) в System.Web.UI.Page.ProcessRequest () в System.Web.UI.Page.ProcessRequestWithNoAssert (контекст HttpContext) в System.Web.UI.Page.ProcessRequest (контекст Http.Web. Mvc.ViewPage.ProcessRequest (контекст HttpContext) в ASP.views_listen_twittertimeline_aspx.ProcessRequest (контекст HttpContext) в c: Windows Microsoft.NET Framework v80004005 Temporary ASP.NET Files root 286f246e4.0.30319 ff8abyte8 .cs: ​​строка 9134 в System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper. <> c__DisplayClass8.b__3 () в System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapperc. ServerExecuteHttpHandlerWrapper.Wrap [TResult] (Func1 func)
at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.Wrap(Action action)
at System.Web.Mvc.HttpHandlerUtil.ServerExecuteHttpHandlerWrapper.ProcessRequest(HttpContext context)
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.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.<>c__DisplayClass14.<InvokeActionResultWithFilters>b__11()
at System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func
1 продолжение) в System.Web.Mvc.ControllerActionInvoker. <> C__DisplayClass14. <> C__DisplayClass16.b__13 () в System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters (ControllerContext controllerContext, IList1 filters, 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.<BeginProcessRequest>b__4()
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass1.<MakeVoidDelegate>b__0()
at System.Web.Mvc.Async.AsyncResultWrapper.<>c__DisplayClass8
1.b__7 (IAsyncResult _) в System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.End () в System.Web.Mvc.MvcHandler.EndProcessRequest (IAsyncResult asyncResult) в System.Mv.Mvc. Web.IHttpAsyncHandler.EndProcessRequest (результат IAsyncResult) в System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute () в System.Web.

This is a migrated thread and some comments may be shown as answers.

H W
asked on 06 Aug 2009, 01:31 PM

I am now trying to implement the WebService method. I am getting an error:

Error executing child request for handler ‘System.Web.UI.Page’

It’s happening on this line:

HttpContext.Current.Server.Execute(pageHolder, output, false)

4 Answers, 1 is accepted

answered on 11 Aug 2009, 12:34 PM

answered on 11 Aug 2009, 01:07 PM

I have solved the Error executing child request for handler problem.

But I run into the other problem with using the webservices with tooltip control.

The problem is:

After the tooltip show, the page could not post back in IE, but it works on firefox.

Did you see this type of problem before.

answered on 13 Aug 2009, 02:05 PM

Hello H W,

We are not aware of such problem except for when thisis done on purpose e.g if you have a button and you return false in its client handler, differences might occur under IE and FF and this also might happen when using the UseSubmitBehavior property.

If you need further assistance, please start stripping down code until you isolate the problem. Once you do this, just share some reproduction code here and I will built up a test demo on my side and do my best to help.

All the best,
Svetlina
the Telerik team

answered on 14 Sep 2009, 09:52 AM

Hello H W,

We have the same problem. Error executing child request for handle ‘System.Web.Ui.Page’. Can you tell me how you solved the problem.

Thanks Harm Holtackers

Понравилась статья? Поделить с друзьями:
  • Error errno 10013
  • Error err invalid url
  • Error err 7620 could not determine workspace for application
  • Error erofs read only file system
  • Error erasing flash with vflasherase packet stm32