Pulse7
7/14/2017 - 6:46 AM

Enable custom errors on local machine

Enable custom errors on local machine

<configuration>
  <system.web>
    <customErrors mode="On"/>
  <system.web/>
public ActionResult Index()
{
    throw new Exception("Lmao"); //Pretty error page on local machine
    return Content("s"Hello");
}