Search code examples
c#iis-7application-pool

Get Application Pool Uptime in c#


Is there a way I can determine how long an application pool (in IIS7) has been up (time since started, or last restart) in c#?


Solution

  • Really stupid trick: in some class that everything uses, use a class constructor to remember your start time and use an aspx page to receive it. Now compare to current time.