I want to recycle the application pool through my application.
Previously I was storing the application pool name in my database and using that to recycle. But It ha
In many cases it might be enough to just read the name of the application pool from the environment variable:
var apppool = System.Environment.GetEnvironmentVariable( "APP_POOL_ID", EnvironmentVariableTarget.Process);