473,467 Members | 1,592 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Application_Error not firing

Hi there,

I have an odd situation. I have exception handling set up in my
Application_Error event handler in my global.asax. On my development box,
errors get caught by the event handler fine and redirect the user to an error
page manually...I know about the defaultRedirect but I'm just not using it.
Now when I try to recreate an error on my production box, I get the standard
asp.net error page with the big yellow bar accross the top telling me what
error just occured, but it doesn't hit the Application_Error event.

the web.config files are identical except for a different smtp server.

Should I be looking for some discrepencies between the two applications in
IIS? The production box application uses the DefaultAppPool. One other
difference is that on my development box my application is a virtual
directory whereas on the production box it is a sub directory set up as an
application.

I'm going back to bangin my head against the wall now. Thanks in advance.
--
Thanks,

John Scott.
Jul 21 '05 #1
1 3753
Was wondering if you had resolved this problem yet. My App appears not to be
running the Global.asax file on the production server and I have to hard code
the Database connection string within my code (for now), until I can find out
what the problem is. It works fine in development (as usual)...

"John Scott" wrote:
Hi there,

I have an odd situation. I have exception handling set up in my
Application_Error event handler in my global.asax. On my development box,
errors get caught by the event handler fine and redirect the user to an error
page manually...I know about the defaultRedirect but I'm just not using it.
Now when I try to recreate an error on my production box, I get the standard
asp.net error page with the big yellow bar accross the top telling me what
error just occured, but it doesn't hit the Application_Error event.

the web.config files are identical except for a different smtp server.

Should I be looking for some discrepencies between the two applications in
IIS? The production box application uses the DefaultAppPool. One other
difference is that on my development box my application is a virtual
directory whereas on the production box it is a sub directory set up as an
application.

I'm going back to bangin my head against the wall now. Thanks in advance.
--
Thanks,

John Scott.

Jul 21 '05 #2

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

Similar topics

1
by: Greg Burns | last post by:
I am trying to write a global custom error page. I thought I would jot down some of what I've learned so far... At first I just used the default customErrors section with a defaultRedirect tag,...
3
by: tafs7 | last post by:
My code below is supposed to email me when an error occurs on the application, but it's not emailing anything. Am I missing something? I know the smtp servers I've tried work. I even added a...
1
by: Ken Dopierala Jr. | last post by:
Hi, I'm having a problem where my Application_Error() event in my Global.asax file isn't firing in Release Mode. If I compile in Debug it fires just fine, but if I then recompile in Release it...
6
by: Matt | last post by:
Can anyone give me a good reason to use BOTH application scope Page_Error and the page scope Page_Error when trapping errors in a web application? Is there any real benefit to using the Page_Error...
6
by: Rippo | last post by:
I have a problem with the application_error event being fired from my asp.net application with windows 2003 server standard edition. The event fires fine from my test machine (XP) and all works...
1
by: John Scott | last post by:
Hi there, I have an odd situation. I have exception handling set up in my Application_Error event handler in my global.asax. On my development box, errors get caught by the event handler fine...
0
by: Brian | last post by:
Greetings group! I've got a weird one. I have an ASP.NET 1.1 application that has been running on a dual-processor Windows 2000/IIS 5 server for a couple of years. Global.asax has an...
1
by: jobs | last post by:
I'm forcing an error/exception in one page as follows Protected Overrides Sub OnLoad(ByVal e As EventArgs) Dim badthing As New Exception("XXX") Throw badthing End Sub And attempting to set...
19
by: =?Utf-8?B?anZjb2FjaDIz?= | last post by:
I've got a global.aspx file that works in my dev environment (vs 2005). When i publish the site to a windows 2000 sp4 box running IIS, the global does not seem to fire. Since it's a test server,...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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
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
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,...
0
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...

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.