473,507 Members | 2,447 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Custom Error Pages

OK, an issue I've come across before, but never found a cause for or
resolution of, has decided to become the bane of my life again with ASP.Net
Custom Error Pages.

Basically, my web application is configured to utilise a custom errors page,
in that unhandled exceptions get passed through and the page redirects
correctly as per the settings in the web.config file and Global.asax. This
works in 95% or so of cases, however...

On occasion, and not in any way I see to be replicable, the custom error
handling in ASP.Net/IIS falls over and simply ouputs a standardised error
page stating;
Runtime Error
Description An Application error occured on the server. The current custome
error settings for this application prevent the details of this 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 tag within a "web.config" configuration
file located in the root directory of the current application. The tag should
then have its "mode" attribute set to "Off".
Notes The current error page you are seeing can be replaced by a custome
error page by modifying the "defaultRedirect" attribute of the applications
configuration tag to point to a custom error page URL.

Does anyone have any idea's of the cause of this, solutions to it, or
workarounds? Even suggestions would do at this point. As I said the
application handles pretty much all errors gracefully, redirecting as
appropriate and outputting the error details, but that 5% or so of cases
where it doesn't is just baffling.
I've tried having everything configured for custom error pages in
Web.Config, in the Application_Error event of the Global.asax and with a
mixture of the two. I can get all three methodologies working in 95% or so of
cases, but always I return with this issue that on occassion an application
error results in that standard error page with the details supplied above.
It's almost as if the application itself, or the web.config file of the
application, becomes temporarily unavailable.

I really would just like to know why this is occuring at this point.

Rhys

A bus station is where a bus stops. A train station is where a train stops.
On my desk I have a workstation...

Vampireware /n/, a project, capable of sucking the lifeblood out of anyone
unfortunate enough to be assigned to it, which never actually sees the light
of day, but nonetheless refuses to die.
Nov 19 '05 #1
0 1646

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
9278
by: Steve | last post by:
All -- This occasionally happens, and there's no set pattern on why this is... perhaps it happens a few times every few months or so. I have a custom ATL COM object that handles data from...
14
3813
by: sinister | last post by:
I have some CGI programs that spit out error pages when the user enters illegal form input. These custom error pages, while informing the user of errors, are otherwise just standard web pages. ...
3
1529
by: CoreyMas | last post by:
This is what i am trying to do I have a DAL that contains all of my database connections/reads etc. I have a separate GUI layer that has my web pages I would like to pass my exception errors...
9
13883
by: Nick | last post by:
the customError feature is not working. I have it setup as the help says in my web.config file. <customErrors defaultRedirect="DsAppError.aspx" mode="RemoteOnly"/> I tried in a couple...
3
3587
by: Bubu | last post by:
Hello this is robert, I need some suggestion, I have a website, hosted in windows 2003 server,shared hosting. I would like to have a custom 404 error page, for missing files. In the help file of...
2
2524
by: Matt | last post by:
Hello all, The app we are working on uses custom errors extensively to provide friendly error pages to users whilst logging the actual exceptions behind the scenes. However.... We are now...
8
3870
by: bryan | last post by:
I've got a custom HttpHandler to process all requests for a given extension. It gets invoked OK, but if I try to do a Server.Transfer I get an HttpException. A Response.Redirect works, but I really...
1
2043
by: Ryan | last post by:
I am trying to log events to SQL Server instead of the computers event log, but, although I get no errors, I have no luck. The webevents_events table is empty. I have a custom event that I am...
5
24489
by: rote | last post by:
I'm using ASP.NET 2.0 and i have copied and pasted the code below to my Global.asax file but it desn't trap the error I want to trap the 401 access denied void Application_Error(object sender,...
0
7114
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7034
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5045
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.