<div style="Font-family:tahoma,Arial; font-size: 10pt">
ich möchte mit ASP.NET durchführen
<pre>
DirectoryEntry root = new DirectoryEntry("IIS://localhost/W3SVC");
foreach(DirectoryEntry e in root.Children)
{
...
}
</pre>
und folgt Fehlermeldung "Zugriff verweigert".
Ich habe es probiert auch mit <br> DirectoryEntry root = new DirectoryEntry("IIS://localhost/W3SVC",myUserName,myPassword) <br>
wo myUserName ist Admin-Benutzername, aber immer kommt die Fehlermeldung.<br>
Wie kann ich den Code unter bestimmtem Konto durchführen ?
</div>
ich möchte mit ASP.NET durchführen
<pre>
DirectoryEntry root = new DirectoryEntry("IIS://localhost/W3SVC");
foreach(DirectoryEntry e in root.Children)
{
...
}
</pre>
und folgt Fehlermeldung "Zugriff verweigert".
Ich habe es probiert auch mit <br> DirectoryEntry root = new DirectoryEntry("IIS://localhost/W3SVC",myUserName,myPassword) <br>
wo myUserName ist Admin-Benutzername, aber immer kommt die Fehlermeldung.<br>
Wie kann ich den Code unter bestimmtem Konto durchführen ?
</div>
Comment