Which view is this line of code in ? SideBar View or the other?
I make a demo and put @{Html.RenderAction("SideBar", "Home"); } in Index View,when Index View is loading, it will jump to SideBar Action,and call _SideBar View.
3.Get rid of the layout @{ Layout = null; } in the child view
4... or other
In addition, it seems that somewhere in the processing stack there is an issue. Press continue and the full error will be output onto the webpage.
Easy to find once it got to this point.
If you have any questions,please post more details.
Best Regards.
Yuki Tao
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
None
0 Points
1 Post
Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandle...
Sep 18, 2018 02:22 AM|Ahncel|LINK
Need help
A partial view is returning this error. Can some one know how to fixed this ?
Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'
* Controller Code
public ActionResult SideBar()
{
List<ApplicationMenuDO> crresult = new List<ApplicationMenuDO>();
AppMenuParam amparam = new AppMenuParam();
amparam.ApplicationID = Properties.Settings.Default.appID;
amparam.serverLoc = Properties.Settings.Default.serverLoc;
using (HttpClient client = new HttpClient())
{
client.BaseAddress = new Uri(url);
MediaTypeWithQualityHeaderValue contentType = new MediaTypeWithQualityHeaderValue("application/json");
client.DefaultRequestHeaders.Accept.Add(contentType);
HttpResponseMessage response = client.GetAsync("/Services/Utilities.svc/GetApplicationMenu/1/5").Result;
var stringData = response.Content.ReadAsStringAsync().Result;
JObject result = JObject.Parse(stringData);
var clientarray = result["GetApplicationMenuResult"].Value<JArray>();
List<ApplicationMenuDO> clients = clientarray.ToObject<List<ApplicationMenuDO>>();
return View("_SideBar",clients);
}
*View Code
@{Html.RenderAction("SideBar", "Home"); }
Contributor
3710 Points
1431 Posts
Re: Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHa...
Sep 18, 2018 09:43 AM|Yuki Tao|LINK
Hi Ahncel,
Which view is this line of code in ? SideBar View or the other?
I make a demo and put @{Html.RenderAction("SideBar", "Home"); } in Index View,when Index View is loading, it will jump to SideBar Action,and call _SideBar View.
But I can't reproduce your issue.
Maybe you could refer to this link:
https://stackoverflow.com/questions/19272720/error-executing-child-request-for-handler-in-view
https://stackoverflow.com/questions/18465059/error-executing-child-request-for-handler-system-web-mvc-httphandlerutilserver
There are many factors that can cause errors.
I think you could pay attention to:
1.[HttpGet]
2.return PartialView("_SideBar",clients)
3.Get rid of the layout @{ Layout = null; } in the child view
4... or other
In addition, it seems that somewhere in the processing stack there is an issue. Press continue and the full error will be output onto the webpage.
Easy to find once it got to this point.
If you have any questions,please post more details.
Best Regards.
Yuki Tao
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.