Sunil Sudhansu

Sunil Sudhansu

  • 1.3k
  • 301
  • 29.7k

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'.

Answers (1)