Security issue with DirectoryServices

From: Carl (rushrush_at_verizon.net)
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))

...

site.Invoke("SetInfo")

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.

Thanks