Yellow Screen Of Death (YSOD)
Setting in Webconfg file
<system.web>
<compilation debug="true" targetFramework="4.7.2" />
<httpRuntime targetFramework="4.7.2" />
<trust level="Full" />
<customErrors mode="RemoteOnly"
defaultRedirect="~/Shared/Error.cshtml" />
</system.web>
Show error in custom error file
@model System.Web.Mvc.HandleErrorInfo
<div class="container">
<h1>Error.</h1>
<h5>An
error occurred while processing your request.</h5>
<p style="color:red"> @Model.Exception.Message</p>
<br /><br />
</div>
