I was thinking more to something like having Application.Clear somewhere.
That would clear the application variable but would left session variables
unchanged.
Let's rephrase the problem wihtout any assumption from my part.
The Application_Start event stores a " _Start" applciation variable that has
the current date/time of the event (not using lock).
The only usage of this application variable is to be dumped in error
reports. It is only read, never written once stored...
I see this variable in some other reports but starting at some point, this
variable is no more available in error reports...
---
Patrice
"Juan T. Llibre" <(E-Mail Removed)> a écrit dans le message de
news: %(E-Mail Removed)...
> re;
>>I saw in a past error report that I have a session start (I also track
>>this one) that is earlier than the time at which the application variable
>>has been populated again.
>
> That's impossible.
>
> Application_Start fires earlier that Session_Start.
> It's the first event for all ASP.NET Applications and must fire before any
> other events fire.
>
> See:
> http://msdn2.microsoft.com/en-us/library/ms178473.aspx
>
> re:
>> So it definitely looks like the problem is not that the application
>> restarts but that it loses this application variable for some other
>> reason.
>
> That is highly unlikely.
>
> Are you using Application.Lock when you set the application variable ?
>
>
>
>
> Juan T. Llibre, asp.net MVP
> asp.net faq : http://asp.net.do/faq/
> foros de asp.net, en español : http://asp.net.do/foros/
> ===================================
> "Patrice" <http://www.chez.com/scribe/> wrote in message
> news:%(E-Mail Removed)...
>>I saw in a past error report that I have a session start (I also track
>>this one) that is earlier than the time at which the application variable
>>has been populated again.
>
>> So it definitely looks like the problem is not that the application
>> restarts but that it looses this application variable for some other
>> reason. I'll try to see if I have some code that could cause this...
>>
>> Back on a new track... Thanks.
>
>
>> "Patrice" <http://www.chez.com/scribe/> a écrit dans le message de news:
>> u%(E-Mail Removed)...
>>> Yes, but it looks like at some point I loose the application variable
>>> that is defined in Application_Start. Then as, it doesn't exist any more
>>> it is set in BeginRequest.
>>>
>>> I assumed this was because the application stopped (loosing application
>>> variables) and was restarted without application_start being fired
>>> (which would have populate again the variable). As the application
>>> variable is not populated yet then beginrequest populate it... This is
>>> the behavior I see.
>>>
>>> That said you made me think that it could be something else. The
>>> application perhaps doesn't restart at all but for some reason, I loose
>>> the application variable. I'll try to see if something could cause
>>> this...
>>>
>>> ---
>>> Patrice
>>>
>>>
>>> "Thomas Hansen" <(E-Mail Removed)> a écrit dans le message de news:
>>> (E-Mail Removed)...
>>>>
>>>>
>>>> On Jan 26, 11:53 am, "Patrice" <http://www.chez.com/scribe/> wrote:
>>>>> Hi all,
>>>>>
>>>>> Got a strange problem.
>>>>
>>>> It isn't very strange, in fact Application_Start only fires _when the
>>>> application starts_
>
>>>> Normally after an Application_End... 
>>>>
>>>> This doesn't nessecary happen every "n'th hour" or when you press F5 in
>>>> de debugger etc...
>>>> Under perfect circumstances the Application_Start will be called ONCE
>>>> and then NEVER again until END OF TIME...!!
>
>