473,503 Members | 4,692 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how do you stop the asp worker processing errors

Where are the templates for the asp.net error pages stored? I am
catching all errors but sometimes I still get the orange asp error
page.
I looked at machine.config but I didn't see any error handler which I
could overwrite. I don't want my customers to see the aspxerror path
in the URL either.
Does someone know how to replace the error handling in asp.net at the
root? I don't mean the customerrors tag in web.config. That's too late
in the process for me.
Thanks, Henry
Nov 18 '05 #1
5 2016
Hi Henry,

I'm not exactly sure what you're asking, but if you're trying to handle any
unhandled exception, the best method is to add an event delegate for
AppDomain.CurrentDomain.UnhandledException.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
Microsoft Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

--------------------
From: ne********@bestmail.us (Henry)
Newsgroups: microsoft.public.dotnet.framework.aspnet
Subject: how do you stop the asp worker processing errors
Date: 21 Jul 2004 10:02:38 -0700
Organization: http://groups.google.com
Lines: 10
Message-ID: <d8**************************@posting.google.com >
NNTP-Posting-Host: 67.100.95.19
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1090429372 14086 127.0.0.1 (21 Jul 2004 17:02:52 GMT)X-Complaints-To: gr**********@google.com
NNTP-Posting-Date: Wed, 21 Jul 2004 17:02:52 +0000 (UTC)
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!p
ostnews2.google.com!not-for-mailXref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:248881
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Where are the templates for the asp.net error pages stored? I am
catching all errors but sometimes I still get the orange asp error
page.
I looked at machine.config but I didn't see any error handler which I
could overwrite. I don't want my customers to see the aspxerror path
in the URL either.
Does someone know how to replace the error handling in asp.net at the
root? I don't mean the customerrors tag in web.config. That's too late
in the process for me.
Thanks, Henry


Nov 18 '05 #2
"Henry" <ne********@bestmail.us> wrote in message
news:d8**************************@posting.google.c om...
Where are the templates for the asp.net error pages stored? I am
catching all errors but sometimes I still get the orange asp error
page.
I looked at machine.config but I didn't see any error handler which I
could overwrite. I don't want my customers to see the aspxerror path
in the URL either.
Does someone know how to replace the error handling in asp.net at the
root? I don't mean the customerrors tag in web.config. That's too late
in the process for me.


Take a look at the <customErrors> element.
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #3
Hi, you could redirect your user to another page (friendly-PageError)

in your web.config you could do:

<customErrors mode="On" defaultRedirect="AppError.aspx" />

so whenever an unhandled error is created automaticly redirects to
AppError.aspx

Marcos Santos

"Henry" <ne********@bestmail.us> escreveu na mensagem
news:d8**************************@posting.google.c om...
Where are the templates for the asp.net error pages stored? I am
catching all errors but sometimes I still get the orange asp error
page.
I looked at machine.config but I didn't see any error handler which I
could overwrite. I don't want my customers to see the aspxerror path
in the URL either.
Does someone know how to replace the error handling in asp.net at the
root? I don't mean the customerrors tag in web.config. That's too late
in the process for me.
Thanks, Henry

Nov 18 '05 #4
> <customErrors mode="On" defaultRedirect="AppError.aspx" />

I played with the custom errors but it always will result to a URL
like this:

AppError.aspx&aspxerrorpath=/ErrorHandling/WebForm1.aspx

asp will always append the error path at the end of my custom error
handler and I don't want this.

There must be a way to catch errors (404,500, ...) before the custom
error handler gets them.

Henry
Nov 18 '05 #5
Henry,

You can either use IIS error handling or write an HttpModule to do that.

Jim Cheshire [MSFT]
MCP+I, MCSE, MCSD, MCDBA
Microsoft Developer Support
ja******@online.microsoft.com

This post is provided "AS-IS" with no warranties and confers no rights.

--------------------
From: ne********@bestmail.us (Henry)
Newsgroups: microsoft.public.dotnet.framework.aspnet
Subject: Re: how do you stop the asp worker processing errors
Date: 22 Jul 2004 09:33:56 -0700
Organization: http://groups.google.com
Lines: 16
Message-ID: <d8**************************@posting.google.com >
References: <d8**************************@posting.google.com > <OZ**************@TK2MSFTNGP11.phx.gbl>NNTP-Posting-Host: 67.100.95.19
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1090514036 17900 127.0.0.1 (22 Jul 2004 16:33:56 GMT)X-Complaints-To: gr**********@google.com
NNTP-Posting-Date: Thu, 22 Jul 2004 16:33:56 +0000 (UTC)
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!newsfeed00.s
ul.t-online.de!t-online.de!fr.ip.ndsoftware.net!proxad.net!postnews 2.google.
com!not-for-mailXref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:249140
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
<customErrors mode="On" defaultRedirect="AppError.aspx" />


I played with the custom errors but it always will result to a URL
like this:

AppError.aspx&aspxerrorpath=/ErrorHandling/WebForm1.aspx

asp will always append the error path at the end of my custom error
handler and I don't want this.

There must be a way to catch errors (404,500, ...) before the custom
error handler gets them.

Henry


Nov 18 '05 #6

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

Similar topics

2
7199
by: Simon Niederberger | last post by:
Hi I've written a Windows Service which has - several (0-100) listeners threads which spawn worker threads based on events, timers etc - several (0-300) worker threads which handle data...
12
2142
by: Joey Powell | last post by:
Re: Original post = Windows forms - how do I get them to render/update properly? from August 22. Okay I am making some progress with being able to use delegates to run my shelled processes on...
0
1082
by: Rusty Shackleford | last post by:
I am having trouble getting my ASP.Net applications and sessions to stay running. At first, I thought it was my lack of understanding of ASP.Net, or the fact that I am using Anonymous...
6
4960
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
7
2671
by: Charles Law | last post by:
My first thought was to call WorkerThread.Suspend but the help cautions against this (for good reason) because the caller has no control over where the thread actually stops, and it might have...
5
2091
by: juky | last post by:
Hi all, I have 3 running threads chencking for something in my application. Based on that I need to stop some of them safely wait for something else and restart. Sleep is not good in my case...
14
6850
by: joey.powell | last post by:
I am using VS2005 for a windows forms application. I need to be able to use a worker thread function to offload some processing from the UI thread. The worker thread will need access to a...
6
5948
by: sjoshi | last post by:
I'm able to use the Bacground Worker class to execute task and pain the UI. However I want to be able to execute n tasks in order, say n1, then n2 if there were no errors during n1, n3 so on. ...
1
3423
by: nicerun | last post by:
I'm using the Application_Start event at Global.asax.cs to invoke thread that do some job. I know that Application_Start event occurs when the very first request to Web Application received. -...
0
7207
marktang
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,...
0
7093
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
7291
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
7357
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
5023
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
4690
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...
0
3180
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...
1
748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
402
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.