public static object WebSiteDoco() { var website = new Iis6WebSite { Name = "MyWebSite", Directory = @"c:\websites\mywebsite" }; website.Bindings = new[] { new Iis6WebSiteBinding { Hostname = "mywebsite.com" }, new Iis6WebSiteBinding { IPAddress = IPAddress.Loopback, Port = 7010 } }; website.ScriptMapsToAdd = new[] { new Iis6ScriptMap { AllVerbs = false, Executable = @"c:\website\scriptmaps\myscriptmap.dll", Extension = ".dat", IncludedVerbs = "GET,POST,DELETE", ScriptEngine = true, VerifyThatFileExists = false } }; website.ScriptMapsToAdd = Iis6WebSite.MvcScriptMaps; website.AppPool = new Iis6AppPool { Name = "MyAppPool" }; website.Authentication = new[] { Iis6Authentication.NTLM, Iis6Authentication.Anonymous }; website.Started = false; return(null); }
public void IisTest() { Iis6WebSite.HostName = "localhost"; Iis6WebSite.CreateNewWebSite("localhost", "91", "abc", "def", "c:\test"); Assert.IsTrue(true); }