Access Denied Exception When Using DirectoryEntry

G

Guest

I 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top