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 "defaultRedirec t" 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_Err or 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. 0 1677 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 multiple pages
and sites on my server. Occasionally, I'll get the following errors:
ASP_0241|CreateObject_Exception|-|ASP_0241|CreateObject_Exception|42|ASP_0177_:_c0000005|Server.CreateObject_Failed
500
|
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.
Is there a disadvantage to not spitting out a 404 error? I assume 404 isn't
just another webpage, but carries with it the information that an error
occured---in so simple a manner that it could be used for e.g. link
checking.
TIA,
|
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 in my DAL to a custom web page to
display to the user.
Here is what I have done so far
|
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 different parts of my site to throw a dummy exception
and I always get to the page that says change my web.config to the statement
above.
|
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 my internet provider they said to do it in .NET,
like this
web.config
<configuration>
| |
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 having to integrate some Web services into the
application using the existing architecture. These Web services are
secured using Forms Authentication. Hence, we need to turn the default
behavior of Forms Authentication (redirects to login pages, etc)...
|
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 need to
avoid the extra round-trip to the client.
I've tried Passing the page name, the full URL, and the instance of
the handler class to the Transfer method, but everything gets me the
same error 500.
Any help would be appreciated.
|
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
raising (passwordchange), and can see it beign raised
successfully...just it seems to go nowhere. I have run aspnet_regsql
to setup the database to handle event recording. I am fairly sure I am
missing something in my web.config file. (I would...
|
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, EventArgs e)
{
Exception exception = Server.GetLastError();
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |