Microsoft.Web.Administration.Site when calling Stop () throws NotImplemenetedException
I am trying to stop a site in IIS.
Here is my code
Site oSite = SERVERMANAGER.Sites.FirstOrDefault(s => s.Name.IndexOf(websiteName) > -1);
if (oSite != null)
{
//stop the site...
oSite.Stop();
}
When it restores oSite.Stop (); he will throw
"Method or operation not implemented."
I am using Windows 7 Home Premium and the IIS version I am using is 7.5.
Any idea how to resolve this error?
+3
source to share