PC Review


Reply
Thread Tools Rate Thread

customErrors

 
 
=?Utf-8?B?RGVtZXRyaQ==?=
Guest
Posts: n/a
 
      18th Aug 2006
I have the following in my web config file:

<customErrors mode="RemoteOnly" defaultRedirect="Error.aspx" />

Here is the code in the Error.aspx:

protected void Page_Load(object sender, EventArgs e)
{
Exception err = Server.GetLastError().GetBaseException();

this.lblMessage.Text = err.ToString();
}

If mode is set to RemoteOnly I still get the yellow screen of death.
If mode is set to Off I still get the yellow screen of death.
If mode is set to On I get the yellow screen of death that tells me to set
the mode to RemoteOnly or Off to see the actual error message.

Why the heck doesn't it direct to my Error.aspx page and show the error that
way?

--
-Demetri
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
customErrors Arne Microsoft ASP .NET 1 12th Aug 2009 06:11 PM
CustomErrors! What is going on? shapper Microsoft ASP .NET 0 27th Nov 2008 03:47 AM
<customErrors Arne Garvander Microsoft ASP .NET 3 13th Jun 2008 08:38 PM
customErrors poifull Microsoft ASP .NET 1 15th May 2007 08:19 AM
customErrors 404 NRao Microsoft ASP .NET 1 1st Jul 2003 05:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:08 AM.