473,387 Members | 1,897 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 3746
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,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.