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