Groups | Blog | Home
all groups > asp.net > january 2005 >

asp.net : Global constructor called twice


Ryan Trudelle-Schwarz
1/21/2005 9:15:23 PM
[quoted text, click to view]

The first time is special (check reflector, they actually call it special).

Generally speaking, they want you to do whatever you need to do in the application_start
method.

hth, Ryan
Manuel Vázquez Acosta
1/21/2005 11:40:42 PM
I found out that the constructor for the Global (Global.asax) component is
called twice. The first time the Application_Start is called, while the
second is not.
Is this documented somewhere out there?

So, any instance variable iniatilizated in the Application.Start, will be
discarded the second time the Global constructor is called.

Regards,
Manuel.

AddThis Social Bookmark Button