Browse by Tags
All Tags »
IIS »
Development (
RSS)
Tweet A long time ago I wrote about SharePoint 2007 Files Restore Tool , tool that allows you to connect to SharePoint content database (not need to have SharePoint installation) and extract documents. The reason I wrote this tool was a customer that upgrade TFS and perform a new installation of SharePoint so he lost all his documents, this tool helped me to extract all documents and added them to the new SharePoint site. SharePoint upgrade/migration can be unpleasant and sometimes I prefer to do...
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 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 { ...
Last week I had a task to build a tool that can control IIS and Services in another computer in different domain. Performing IIS reset or control Services status in different computer is easy, but when the computer belongs to a different domain those actions becomes quite complicated. So I found that create an dynamic Access Token is the best way to accomplish those actions. An access token is an object that describes the security context of a process or thread. The information in a token includes...