IIS Application pool PID

On Windows Server 2008 this has changed. in %systemroot%\system32\inetsrv you find the appcmd.exe using appcmd list wp you get a list of all the worker processes and which apppool they are serving. You might need to run this in a shell with Administrator privileges.

What is an IIS application pool?

Application pools allow you to isolate your applications from one another, even if they are running on the same server. This way, if there is an error in one app, it won’t take down other applications. Additionally, applications pools allow you to separate different apps which require different levels of security. Here’s a good resource: … Read more

ASP.NET restarts when a folder is created, renamed or deleted

This code appears to resolve the issue, when added to Application_Start() in Global.asax: PropertyInfo p = typeof(System.Web.HttpRuntime).GetProperty(“FileChangesMonitor”, BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static); object o = p.GetValue(null, null); FieldInfo f = o.GetType().GetField(“_dirMonSubdirs”, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.IgnoreCase); object monitor = f.GetValue(o); MethodInfo m = monitor.GetType().GetMethod(“StopMonitoring”, BindingFlags.Instance | BindingFlags.NonPublic); m.Invoke(monitor, new object[] { }); http://dotnetslackers.com/Community/blogs/haissam/archive/2008/11/12/disable-session-expiration-when-using-directory-delete.aspx With these … Read more

What causes an application pool in IIS to recycle?

The article you liked in the other post actually did a really good job of this. Immediate Recycle Web.config changes Machine.config changes Global.asax changes Bin directory changes App_Code changes Delayed Recycle Can occur with multiple changes in other locations, typically, I’ve only noticed this with changes to .aspx or .cs/.vb files though. Adding temporary text, … Read more