944,181 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 7493
  • C# RSS
Jul 16th, 2005
0

host header on iis programmatically

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mona is offline Offline
8 posts
since Jul 2005
Oct 16th, 2005
0

Re: host header on iis programmatically

hi dear,
did you get any solution for this. I also want to implement this
Reputation Points: 10
Solved Threads: 0
Newbie Poster
dr_maq is offline Offline
1 posts
since Oct 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: XML Reader Help
Next Thread in C# Forum Timeline: Access unqualified XML element





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC