host header on iis programmatically

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2005
Posts: 8
Reputation: mona is an unknown quantity at this point 
Solved Threads: 0
mona mona is offline Offline
Newbie Poster

host header on iis programmatically

 
0
  #1
Jul 16th, 2005
i wanna know how to add a host header to the sirt already created
in fact i created the site programmtically and i used that code to add host header on that site during creation :

DirectoryEntry site = (DirectoryEntry)objIISRoot.Invoke("Create", "IIsWebServer", siteID);

object[] hosts = {this.Server_IP + ":80:" + webSiteName, this.Server_IP + ":80:www." + webSiteName};

site.Invoke("Put", "ServerBindings", hosts);

but the problem is : i cannot get the site again and add to it the host header
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 1
Reputation: dr_maq is an unknown quantity at this point 
Solved Threads: 0
dr_maq dr_maq is offline Offline
Newbie Poster

Re: host header on iis programmatically

 
0
  #2
Oct 16th, 2005
hi dear,
did you get any solution for this. I also want to implement this
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC