appdomain

Programmatically find when the ASP.NET worker process and app domain last started?

In ASP.NET: How can I tell when the ASP.NET worker process last restarted? In ASP.NET, how can I tell when the app domain last recycled? ...

Add directories to ASP.NET shadow copy

In my ASP.NET app, I'm attempting to add another directory to be have the DLLs in it shadow copied. The only method I found that will allow m to do this is AppDomain.CurrentDomain.SetShadowCopyPath. However, this method is marked as Obsolete. MSDN has this to say about it SetShadowCopyPath(String path) Message: AppDomain.Se...

AppDomain.Unload throws in Finalizer?

So here is the story so far, I have this worker thingy which uses an AppDomain to perform some task. The domain is expensive to setup and teardown. So I create a cache per-thread of WeakReference objects to the worker thingy like so: class Worker { [ThreadStatic] static Dictionary<string, WeakReference> _workers; public s...