Could any one tell me, How to work with Elmah in MVC 5.. when an error occurs it has to redirect to a some default page like a service error,Http not found.
public ActionResult About()
{
ViewBag.Message = "Your app description page.";
try
{
int message = Convert.ToInt32("Hello");
}
catch (Exception exp)
{
Elmah.ErrorSignal.FromCurrentContext().Raise(exp);
// throw;
}
return View();
}
How could I redirect to error page