Re: ASP.NET AppDomain - User code at Initialization

Re: ASP.NET AppDomain - User code at Initialization

am 14.01.2008 21:50:08 von nemtsev

Hello csprakash@yahoo.com,

What exactly behavior u need and why Application_Start is inappropriate?

Im not quite understand how u gonna hook the AppDomain when asp.net starts
to add AppDomainInitializer event

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


> Hi All,
> I want to run some user when an Application is started, or when a
> worker process is started. Application_Start, Init methods of
> HttpApplication in Global.asax.cs are of not use, as they are called
> only on the first call to an aspx page in the application. They are
> not called during the initialization of the worker process (or)
> Application Domain.
>
> Is this possible at all? I came accross a delegate
> "AppDomainInitializer", is this of any use? Can it be configured in
> IIS to invoke user code?
>
> Any inputs/pointers will be very helpful.
>
> Thanks,
> Ashton