Rhys666
Programmer
- May 20, 2003
- 1,106
Ok. I understand the custom errors tag in th web.config file, but custom error pages are simly not working in my ASP.net app. I have posted this on a few forums a while ago but not yet here. If anyone can help...
This is the tag in my web.config file.
<customErrors mode="On" defaultRedirect="frmError.aspx" >
</customErrors>
frmError.aspx does exist, and the application has been compiled. However, whenever an unhandled exception occurs I get the standard message...
"Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please 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>
"
...instead of the frmError.aspx page being displayed. The <customErrors> tag is with the <system.web> tag. Could it be I need to configure IIS in any way, otherwise does anyone have a clue as to what the hell is going on?
Rhys
Be careful that the light at the end of the tunnel isn't a train coming the other way.
This is the tag in my web.config file.
<customErrors mode="On" defaultRedirect="frmError.aspx" >
</customErrors>
frmError.aspx does exist, and the application has been compiled. However, whenever an unhandled exception occurs I get the standard message...
"Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please 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>
"
...instead of the frmError.aspx page being displayed. The <customErrors> tag is with the <system.web> tag. Could it be I need to configure IIS in any way, otherwise does anyone have a clue as to what the hell is going on?
Rhys
Be careful that the light at the end of the tunnel isn't a train coming the other way.