473,398 Members | 2,393 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,398 software developers and data experts.

HttpApplication Init, Application_Start and Application_End don't fire

I have an odd problem...

We have a small development team (three coders) working on the same project
(a C# web application). Each coder has a unique 'sandbox' site on a shared
Windows 2003 where they can test the code they write. The majority of the
code is written into a stand-alone class library shared via VSS, that is
then referenced by each sandbox web (each of which is unique to each user).

In the stand-alone class library, we have a class
(PortalServices.Application) that subclasses or derives from
System.Web.HttpApplication for common application-level event trapping.. In
each sandbox web, the backend code for Global.asax is altered to derive from
this custom class instead of HttpApplication. There are methods that
override Init, and then the standard protected event handler methods.

The first coder that we set up in this envrionment worked exactly as
planned. However, the second coder has experienced a very odd problem. The
Application_Start method fires once - when the web project is first created
on the Windows 2003 server, after that - even if the server is rebooted -
the Application_Start method never gets called again, and the Init and
Application_End methods are _never_ called.

It's driving us crazy. We need to have our sandbox sites on a Windows 2003
server to test specific functionality that is unique to 2003, but we don't
relish installing 2003 on each of our desktops as our workstation platform.

Anybody have any ideas? Thanks in advance,

hb.
Nov 17 '05 #1
4 7047
Nevermind...

The issue was related to security problems with the log we were writing to.

D'oH!.

"Halcyon Woodward" <ha***********@hotmail.com> wrote in message
news:OJ**************@TK2MSFTNGP12.phx.gbl...
I have an odd problem...

We have a small development team (three coders) working on the same project (a C# web application). Each coder has a unique 'sandbox' site on a shared Windows 2003 where they can test the code they write. The majority of the
code is written into a stand-alone class library shared via VSS, that is
then referenced by each sandbox web (each of which is unique to each user).
In the stand-alone class library, we have a class
(PortalServices.Application) that subclasses or derives from
System.Web.HttpApplication for common application-level event trapping.. In each sandbox web, the backend code for Global.asax is altered to derive from this custom class instead of HttpApplication. There are methods that
override Init, and then the standard protected event handler methods.

The first coder that we set up in this envrionment worked exactly as
planned. However, the second coder has experienced a very odd problem. The Application_Start method fires once - when the web project is first created on the Windows 2003 server, after that - even if the server is rebooted -
the Application_Start method never gets called again, and the Init and
Application_End methods are _never_ called.

It's driving us crazy. We need to have our sandbox sites on a Windows 2003 server to test specific functionality that is unique to 2003, but we don't
relish installing 2003 on each of our desktops as our workstation platform.
Anybody have any ideas? Thanks in advance,

hb.

Nov 17 '05 #2
Nevermind...

The issue was related to security problems with the log we were writing to.

D'oH!.

"Halcyon Woodward" <ha***********@hotmail.com> wrote in message
news:OJ**************@TK2MSFTNGP12.phx.gbl...
I have an odd problem...

We have a small development team (three coders) working on the same project (a C# web application). Each coder has a unique 'sandbox' site on a shared Windows 2003 where they can test the code they write. The majority of the
code is written into a stand-alone class library shared via VSS, that is
then referenced by each sandbox web (each of which is unique to each user).
In the stand-alone class library, we have a class
(PortalServices.Application) that subclasses or derives from
System.Web.HttpApplication for common application-level event trapping.. In each sandbox web, the backend code for Global.asax is altered to derive from this custom class instead of HttpApplication. There are methods that
override Init, and then the standard protected event handler methods.

The first coder that we set up in this envrionment worked exactly as
planned. However, the second coder has experienced a very odd problem. The Application_Start method fires once - when the web project is first created on the Windows 2003 server, after that - even if the server is rebooted -
the Application_Start method never gets called again, and the Init and
Application_End methods are _never_ called.

It's driving us crazy. We need to have our sandbox sites on a Windows 2003 server to test specific functionality that is unique to 2003, but we don't
relish installing 2003 on each of our desktops as our workstation platform.
Anybody have any ideas? Thanks in advance,

hb.

Nov 17 '05 #3
Hello Halcyon,

If you have time, could you please post more details on the solution of the problem and how you found it in order that all the
community could benefit from it? Thanks very much for participating Microsoft newsgroup.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!From: "Halcyon Woodward" <ha***********@hotmail.com>
!References: <OJ**************@TK2MSFTNGP12.phx.gbl>
!Subject: Re: HttpApplication Init, Application_Start and Application_End don't fire
!Date: Mon, 14 Jul 2003 14:22:35 -0700
!Lines: 52
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <ek**************@TK2MSFTNGP12.phx.gbl>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!NNTP-Posting-Host: nausers.mccann.com 199.4.18.2
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:159050
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!Nevermind...
!
!The issue was related to security problems with the log we were writing to.
!
!D'oH!.
!
!
!
!"Halcyon Woodward" <ha***********@hotmail.com> wrote in message
!news:OJ**************@TK2MSFTNGP12.phx.gbl...
!> I have an odd problem...
!>
!> We have a small development team (three coders) working on the same
!project
!> (a C# web application). Each coder has a unique 'sandbox' site on a
!shared
!> Windows 2003 where they can test the code they write. The majority of the
!> code is written into a stand-alone class library shared via VSS, that is
!> then referenced by each sandbox web (each of which is unique to each
!user).
!>
!> In the stand-alone class library, we have a class
!> (PortalServices.Application) that subclasses or derives from
!> System.Web.HttpApplication for common application-level event trapping..
!In
!> each sandbox web, the backend code for Global.asax is altered to derive
!from
!> this custom class instead of HttpApplication. There are methods that
!> override Init, and then the standard protected event handler methods.
!>
!> The first coder that we set up in this envrionment worked exactly as
!> planned. However, the second coder has experienced a very odd problem.
!The
!> Application_Start method fires once - when the web project is first
!created
!> on the Windows 2003 server, after that - even if the server is rebooted -
!> the Application_Start method never gets called again, and the Init and
!> Application_End methods are _never_ called.
!>
!> It's driving us crazy. We need to have our sandbox sites on a Windows
!2003
!> server to test specific functionality that is unique to 2003, but we don't
!> relish installing 2003 on each of our desktops as our workstation
!platform.
!>
!> Anybody have any ideas? Thanks in advance,
!>
!> hb.
!>
!>
!
!
!
Nov 17 '05 #4
The problem turned out to be unrelated to the symptoms, as is often the case
with most stumpers I've come across.

We had a method in the Application class that would write entries to an XML
log file, which we were using to record when each event fired. The same
method was called to record whenever the Application_Error event fired.

To make a long story short, we were having security problems with the
logging method, the executing thread didn't always have permission to write
to the XML file. Because the logging method was always called first in each
event handling method, including Application_Error, no indication that an
exception had been thrown ever bubbled up; producing the symptoms I
described in my post.

Cheers,

hb.

Nov 17 '05 #5

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

Similar topics

3
by: alexB | last post by:
On my ASP.NET application, restarting the application through IIS doesn't always fire the Application_Start() event. Is there a trick to this? Restarting IIS is not an option since there are...
0
by: Halcyon Woodward | last post by:
I have an odd problem... We have a small development team (three coders) working on the same project (a C# web application). Each coder has a unique 'sandbox' site on a shared Windows 2003...
7
by: [Gauthier] | last post by:
Hello, I've a simple question: On a server that run multiple asp.net HttpApplication, is there any way with the asp.net framework to exchange data between different application? I basically...
5
by: Rashad Rivera | last post by:
I need to know why the Application_Start function fires twice when it initializes. It is doing double work and messing up my process. Thanks for your help - Rashad
7
by: Gordon Smith | last post by:
I have four (4) ASP.NET Web applications/Web sites on a IIS/6 - Windows Server 2003 production server. 3 of them work fine. I just installed the 4th one and it's Application_Start event is not...
1
by: Fernando Arámburu | last post by:
Hy everybody, I´m working on an ASP.NET framework and and I need to extend System.Web.HttpApplication. I mean, I need to put some intermediate class between System.Web.HttpApplication and Global...
4
by: Marc Missire | last post by:
Hi, I have an issue below I'd love help with, involving a static variable, Application_Start, and a background thread. In global.asax.cs I have a static variable (outside any method) with a...
5
by: miha.valencic | last post by:
Hi! A while ago, I noticed that there are usually two instances of HttpApplication created within IIS (observed on WinXPPro). Why is that? Especially, since Application_Start handler is called...
18
by: Joey | last post by:
asp.net 2/C# I have noticed that during periods of inactivity on my website, the Application_Start event is firing about every 40-45 minutes. Is this normal? Shouldn't the app start once and...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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
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
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
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...

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.