I could not find an answer to this question in MSDN, so I thought I'd post it here. Basically, we would like to hook and create custom logic in AppDomain.AssemblyResolve event for an ASP.NET web application. The code we are using to hook into this event is
in our Globals.asax.cs protected void OnApplicationStart() { AppDomain domain = AppDomain.CurrentDomain; domain.AssemblyResolve += new ResolveEventHandler(this.OnResolveAssembly); } is this safe, or should we move this code to OnBeginRequest()?
linusconcepc...
Member
42 Points
9 Posts
Is there only one AppDomain instance throughout the life of a typical ASP.NET web application?
May 19, 2004 08:31 PM|LINK