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



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 ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • ADSI Error
    ... intSiteID), DirectoryEntry)) ... works fine until the SetInfo is called. ... repost the fix/workaround. ...
    (microsoft.public.dotnet.framework.aspnet)