Are you using Basic authentication?
--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
<ubahat DeleteThis @hotmail.com> wrote in message
news:0c2d01c3c4b9$f5b639e0$a401280a@phx.gbl...
get Access Denied
(System.Runtime.InteropServices.COMException) When trying
to
use DirectoryEntry on IIS via ASP.NET application. The
same code I use is not generating this Exception while
running in Console mode.
Sample Code :
DirectoryEntry obDirEntry = new DirectoryEntry
(IISPrefix + ComputerName + IISRoot, UserName, Password);
I tried also using impersonate in web config using admin
account but still the same problem.
Any Ideas ??? 10x.
>> Stay informed about: Access Denied Exception When Using DirectoryEntry