asp.net - BindingInformation in Microsoft.Web.Administration -
i try create new site:
servermanager iismanager = new servermanager(); site addedsite = iismanager.sites.add(sitename, sitefolder, 80); addedsite.serverautostart = true; iismanager.commitchanges();
and add site need have in iis binding information "test.com"
how can add ? aslo somehow added site stopped...
you can use following constructor set binding information. found msdn
servermanager iismanager = new servermanager(); site addedsite = iismanager.sites.add(sitename,"http","*:80:www.example.com", sitefolder);
where * server ip address bind hostname www.example.com, or leave * catch requests server ip.
Comments
Post a Comment