Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COMException Error: Access denied

Status
Not open for further replies.

ryDen

Programmer
Jun 6, 2002
71
AP
Hi,

I am currently doing a web database application. To retrieve the user's sid and full name, I have created a separate class to do the functions under a different project. Later, I imported the dll as a reference to use it.

The application is able to run locally on both the development and on the production server. However, when I try to run the web from a client machine, I get this error - System.Runtime.InteropServices.COMException: Access is denied.

The stack trace is as follows: -
[COMException (0x80070005): Access is denied]
System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +704
System.DirectoryServices.DirectoryEntry.Bind() +10
System.DirectoryServices.DirectoryEntry.get_AdsObject() +10
System.DirectoryServices.PropertyValueCollection.PopulateList() +234
System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName) +56
System.DirectoryServices.PropertyCollection.get_Item(String propertyName) +97
...

Is there something I missed out? Login is through Forms Authentication, but login and password is checked against AD using winapi. I have set impersonate to true under web.config, and unchecked anonymous access on the IIS server.

Thanks in advance.

Russ.


 
Im really not sure , but think it might be a permission setting in IIS (IUSR_WORKSTATION) .... maybe it helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top