ServerManager iisManager = new ServerManager(); iisManager.Sites.Add(WebSiteName, httpprefix, bindinginfo, PublishPath); //iisManager.Sites["Default Web Site"].Applications.Add("/Web", Drive + "/Portal/Web"); iisManager.Sites[WebSiteName].ApplicationDefaults.ApplicationPoolName = AppPool; //Start App Pool of the Created Web Site var AppPoolToStart = new ServerManager().ApplicationPools[AppPool]; if (AppPoolToStart != null) AppPoolToStart.Start(); iisManager.CommitChanges();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)