PC Review


Reply
Thread Tools Rate Thread

CustomError not working properly

 
 
Patrick.O.Ige
Guest
Posts: n/a
 
      21st Aug 2006
I have 2 projects named Webproject and Kefi and in the webconfig i have the
same configuration below for the 2:-
<customErrors defaultRedirect="error.aspx"
mode="On">
<error statusCode="500" redirect="error.aspx" />
<error statusCode="404" redirect="error.aspx"/>
</customErrors>



http://localhost/Webproject/error.as...ject/Show.aspx -
this doesn't work
http://localhost/Kefi/error.aspx?asp...fi/Offers.aspx - this
works well and get to the error page

The error i get with the one that doesn't work is:-


Server Error in '/Webproject' Application.
--------------------------------------------------------------------------------

Runtime Error
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.

Details: To enable the details of this specific error message to be viewable
on the local server machine, 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 "RemoteOnly". To enable the details to be viewable on
remote machines, please set "mode" to "Off".

<!-- Web.Config Configuration File -->

<configuration>
<system.web>
<customErrors mode="RemoteOnly"/>
</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="On" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>





 
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
CTRL-F (Find) quit working after 6-months of working properly =?Utf-8?B?YmNyZWVu?= Microsoft Access Form Coding 0 31st May 2006 08:55 PM
CustomError page not working? dm1608 Microsoft ASP .NET 1 23rd Feb 2006 07:17 PM
customerror entry in the Web.Config is not working -- Please Help Me!! Mossman Microsoft ASP .NET 5 27th Sep 2005 11:49 AM
customError Mark Microsoft C# .NET 0 7th Jun 2004 02:29 PM
customerror Robert M Microsoft ASP .NET 2 19th Nov 2003 11:19 PM


Features
 

Advertising
 

Newsgroups
 


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