Hi, I was wondering if you could help out with an issue I am experiencing:
I am trying to publish an AD webservice up to an IIS7 server for the first time (previous deployments are on IIS6). The service in question performs an AD query using login credentials that are specified in code. I have overcome one issue with the impersonate flag, by moving the application into a Classic .Net app pool, which is allowing me to access the app in the first place, but now I am getting the below error:
System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException: An operations error occurred.
---> System.DirectoryServices.DirectoryServicesCOMException: An operations error occurred.
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
at System.DirectoryServices.DirectorySearcher.FindOne()
at System.DirectoryServices.ActiveDirectory.ADSearcher.FindOne()
at System.DirectoryServices.ActiveDirectory.ActiveDirectorySite.FindByName(DirectoryContext context, String siteName)
--- End of inner exception stack trace ---
at System.DirectoryServices.ActiveDirectory.ActiveDirectorySite.FindByName(DirectoryContext context, String siteName)
at System.DirectoryServices.ActiveDirectory.ActiveDirectorySite.GetComputerSite()
at Service.GetGCName()
at Service.GetSDSPConnection()
at Service.SearchUsers(String Criteria, String Field, Boolean Exact)
I have no real idea what is going on here, as I have never actually used IIS7 before.
Thanks
Fergal