DCSIMG
.NET 3.5,IIS - Shai Raiten's Blog

Shai Raiten's Blog

It's all about code...

Browse by Tags

All Tags » .NET 3.5 » IIS (RSS)
Creating Virtual Web Sites on IIS with .Net
Creating Virtual Web Sites on IIS with .Net My last post on Reading Web Sites Status on IIS with .Net was the first post on IIS development through .NET So here is an example for creating virtual Web Site using .NET. public DirectoryEntry VDir = null ; public string Virtual = "" ; public string FriendlyName = "" ; public string Path = ""; public string IISPath = "IIS://LOCALHOST/W3SVC/1/ROOT" ; public bool AuthNTLM = true ; public bool AuthAnonymous = true...
Reading Web Sites Status on IIS with .Net
Reading Web Sites Status on IIS with .Net This is some ability I needed for one of my tools.   Using DirectoryEntry to get information about IIS Web Sites and AppPools.   Code Simple:   public WebSiteEntry [] GetWebSites()     {       string Path = "IIS://" + this .DomainName + "/W3SVC" ;       DirectoryEntry root = null ;       try       {        ...