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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -