Three error modes in which an ASP.NET application can work: 1) Off Mode 2) On Mode 3) RemoteOnly Mode The Error mode attribute determines whether or not an ASP.NET error message is displayed. By default, the mode value is set to "RemoteOnly". Off Mode When the error attribute is set to "Off", ASP.NET uses its default error page for both local and remote users in case of an error. <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.web> <customErrors mode="Off" /> </system.web> </configuration> On Mode In case of "On" Mode, ASP.NET uses user-defined custom error page instead of its default error page for both local and remote users. If a custom error page is not specified, ASP.NET shows the error page describing how to enable remote viewing of errors. <? xml version =" 1.0" encoding =" utf-8" ? > < configuration ...
Comments
Post a Comment