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.


Relevant Pages

  • Re: IIS Attribute mit VB.Net auslesen
    ... Dim de As DirectoryEntry ... If de.SchemaClassName = "IIsWebServer" Then ... Die Klasse wäre wohl auch IIsWebVirtualDirSetting. ... Mit ADSI hab ...
  • ADSI Error
    ... intSiteID), DirectoryEntry)) ... works fine until the SetInfo is called. ... repost the fix/workaround. ...