I am using Microsoft.Web.Administration.dll to check states of my sites by using following code. It works fine with IIS but when it's used in IIS Expresss, then 'State' property throws 'NotImplementedException'.
ServerManager manager = new ServerManager()
foreach (Site site in manager.Sites){
If (site.State == ObjectState.Started)
{
.....
}
}
Has anyone faced this issue?