How to Disable the debug settings in ASP.NET MVC Web.config file ?

You can change or disable the debug settings in the ASP.NET MVC Web.config file by modifying the debug attribute of the Compilation element in the Web.config file.

<system.web>

<httpRuntime targetFramework="4.5" />

<compilation debug="false" targetFramework="4.5" />

</system.web>