Ask a Question related to ASP.NET General, Design and Development.
-
Halcyon Woodward #1
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.
Halcyon Woodward Guest
-
how to throw SoapException from HttpApplication
Hi, When I throw a SoapException from HttpApplication the client which is a Soap Client is saying that it expected text\xml but got text\html.... -
Application_Start event does not fire on restart of IIS?
Hi Sirs. We are facing weird problems using a web service written in C#. When the web service application is started we have some startup code in... -
Application_End
my understanding is that an application can be viewed as somewhat like a web server. it basically starts up when a page is requested, but... -
httpapplication in ASP.NET modules problem
Hi all, I have an ASP.NET application, and in that, I have a helper module for doing common tasks. One of the things I'd like to do is basically... -
Global.asax Application_End questions
My .Net book states that the Application_End event handler in Global.asax gets called typically about 20 minutes after the last HTTP request. My... -
Halcyon Woodward #2
Re: HttpApplication Init, Application_Start and Application_End don't fire
Nevermind...
The issue was related to security problems with the log we were writing to.
D'oH!.
"Halcyon Woodward" <halcyondaze73@hotmail.com> wrote in message
news:OJUr7iiSDHA.2148@TK2MSFTNGP12.phx.gbl...project> I have an odd problem...
>
> We have a small development team (three coders) working on the sameshared> (a C# web application). Each coder has a unique 'sandbox' site on auser).> 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 eachIn>
> 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..from> each sandbox web, the backend code for Global.asax is altered to deriveThe> 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.created> Application_Start method fires once - when the web project is first2003> 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 Windowsplatform.> 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>
> Anybody have any ideas? Thanks in advance,
>
> hb.
>
>
Halcyon Woodward Guest
-
Yan-Hong Huang[MSFT] #3
Re: HttpApplication Init, Application_Start and Application_End don't fire
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! - [url]www.microsoft.com/security[/url]
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
!From: "Halcyon Woodward" <halcyondaze73@hotmail.com>
!References: <OJUr7iiSDHA.2148@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: <ek1nN4kSDHA.1948@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" <halcyondaze73@hotmail.com> wrote in message
!news:OJUr7iiSDHA.2148@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.
!>
!>
!
!
!
Yan-Hong Huang[MSFT] Guest
-
Halcyon Woodward #4
Re: HttpApplication Init, Application_Start and Application_End don't fire
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.
Halcyon Woodward Guest



Reply With Quote

