Security issue with DirectoryServices

From: Carl (
Date: 04/06/05

Date: Wed, 6 Apr 2005 00:34:19 -0400

In an attempt to programmatically create a website using
Dim site As New DirectoryEntry(CType(objIIs.Invoke("Create", "IIsWebServer",
intSiteID), DirectoryEntry))



works fine until the SetInfo is called.

It produces an "Access denied" from source "mscorlib". I am sure this as
been address here previously but can someone who has resolved this kindly
repost the fix/workaround.