Instead of using ADSI in this way, you should use the higher level (but still C based) Admin Base Objects ... that IIS exposes ... see this for more details: http://msdn.microsoft.com/en-us/library/ms525941.aspx Using ABO, you can reference objects like the MimeMap collection much easier. Dave