【发布时间】:2014-05-05 07:45:12
【问题描述】:
我正在使用 Microsoft.Web.Administration.dll 通过以下代码检查我的站点的状态。它适用于 IIS,但在 IIS Expresss 中使用时,“State”属性会抛出“NotImplementedException”。
ServerManager manager = new ServerManager()
foreach (Site site in manager.Sites){
If (site.State == ObjectState.Started)
{
.....
}
}
有人遇到过这个问题吗?
【问题讨论】:
标签: c# asp.net iis-express web-administration