Create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File --> <configuration> <system.web> <customErrors mode="Off"/> </system.web></configuration>
When customErrors is set to On or RemoteOnly, you need to specify the defaultRedirect attribute. This attribute contains the error page to which the user will be redirected. Additionally you can take custom error handling a step further by associating specific errors with specific error pages. The customErrors section can contain error elements that associate particular errors with error pages. The following code sample illustrates this concept.
<?xml
version="1.0"?>
<configuration>
<system.web>

Lharry RamirezPosted May 28, 2025, 7:35 AM
Customer errors mode off
Akshith ReddyPosted Oct 15, 2020, 1:25 PM
Hello! im having a problem while doing a payment online..the web page says RUNTIME ERROR. Please help me to sort it out
Akshith ReddyPosted Oct 15, 2020, 1:22 PM
Where to find root directory of the current web application?