Sunil Sudhansu

Sunil Sudhansu

  • 1.7k
  • 193
  • 12.6k

An exception of type ‘System.Web.HttpException’ occurred in

Jan 14 2020 7:35 PM
Dear Sir,
 
I create _layout page and call partialview
 
@Html.Action("Index", "HeaderMenu")
[HttpGet]
[ChildActionOnly]
public ActionResult Index()
{
return PartialView("Index");
}
[HttpGet]
public ActionResult Create()
{
return View();
}
[HttpPost]
public ActionResult Create(DepartmentMasterViewModel model)
{
return View("Create");
}
 
then create department controller after validation return view() in post method
 
then error occur
 
An exception of type 'System.Web.HttpException' occurred in System.Web.dll but was not handled in user code
Additional information: Error executing child request for handler 'System.Web.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (1)