public void CreateNewWebSite() { IIsService iisService = new IIsService(); using (IIsSite newWebSite = iisService.AddSite("dd", @"C:\Inetpub\abc\", "Testing.com", 110, String.Empty)) { newWebSite.ASPNETVersion = ASPNETVersions.v2_0_50727; var newPool = iisService.AddAppPool("testpool"); newWebSite.ApplicationPoolId = newPool.Id; newWebSite.StartSite(true); } }