Monthly Archives: June 2005

Web Service Portability (part 2)

Another thing that caught me out today… I deployed a couple of web services, and web form consumers of those services to a “Live” environment today, and was getting some strange behaviour. Because of the limited amount of fault tracking … Continue reading

Posted in C# Snippets | Comments Off

Web Service Portability

When you create an application that relies upon web services, the simplest way to define the location of those web services is by specifying them at design time. The problem, of course, is when you want to deploy a development … Continue reading

Posted in C# Snippets | Comments Off

Delete an object from the IIS metabase

Simple enough to do, as long as you remember you have to remove it from the parent item’s children list. public static void DeleteMetabaseObject(string metabasePath) { try { string deleteParent = metabasePath.Substring(0,metabasePath.LastIndexOf("/")); string deleteName = metabasePath.Substring(metabasePath.LastIndexOf("/") + 1); DirectoryEntry parent … Continue reading

Posted in C# Snippets | Comments Off

Create a new Virtual Directory in IIS via C#

The following method will create a new IIS Virtual Folder object, based on a path and a friendly name. ServerID is the ID of the “Web Site” you want to work with in IIS. VirtualDirName is the name of the … Continue reading

Posted in C# Snippets | Comments Off

New Theme

I’ve uploaded the first test run of a new theme today. I know there are still a lot of “issues” with the theme, but it does mean that the <code> tags display in a more user-friendly way now. I shall … Continue reading

Posted in General | Comments Off

Manage IIS Security from a C# Assembly

I have discovered over the past couple of days that it is possible to control many aspects of IIS behaviour from a .NET assembly (in this case I will be using C# as the underlying language), by using the System.DirectoryServices … Continue reading

Posted in C# Snippets | Comments Off