Murray Brown
asked on
ASP.net <customErrors mode
Hi
In my ASP.net web app I get the following message after publishing.
I get that I have to change my web.config file but do I have to also add
a web page called mycustompage.htm? Do I just add this to my project folder?
Can I fir example change the name to MyErrors.html?
Thanks
In my ASP.net web app I get the following message after publishing.
I get that I have to change my web.config file but do I have to also add
a web page called mycustompage.htm? Do I just add this to my project folder?
Can I fir example change the name to MyErrors.html?
Thanks
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER