Ok, I've scoured the net for days now, and I cannot for the life of me find anything that could help with this. We have an ASP.Net application, using Active Directory as the authentication mechanism. However, on random occasions, we get this happening when trying to retrieve user details from AD:
System.Runtime.InteropServices.COMException (0x80072020): 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.PropertyCollection.Contains(String propertyName)
at ISL.Security.ActiveDirectory.Utils.GetProperty(DirectoryEntry entry, String name) in C:\Source Control\ISL.CommonServices\ISL\Security\ActiveDirectory\Utils.cs:line 194
at ISL.Security.ActiveDirectory.ActiveDirectoryManager.PopulateUser(DirectoryEntry entry) in C:\Source Control\ISL.CommonServices\ISL\Security\ActiveDirectory\ActiveDirectoryManager.cs:line 1135
at ISL.Security.ActiveDirectory.ActiveDirectoryManager.GetUser(UserLookupFilterType lookupFilterType, String lookupfilter, String domainName, Boolean getGroupCollection) in C:\Source Control\ISL.CommonServices\ISL\Security\ActiveDirectory\ActiveDirectoryManager.cs:line 161
at _Default.InitialiseSession()
at _Default.InitialisePage()
at _Default.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at ISL.Web.WebPageBase.OnLoad(EventArgs e) in C:\Source Control\ISL.CommonServices\ISL.Web\WebPageBase.cs:line 624
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)/n/nSystem.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Runtime.InteropServices.COMException (0x80072020): 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.PropertyCollection.Contains(String propertyName)
at ISL.Security.ActiveDirectory.Utils.GetProperty(DirectoryEntry entry, String name) in C:\Source Control\ISL.CommonServices\ISL\Security\ActiveDirectory\Utils.cs:line 194
at ISL.Security.ActiveDirectory.ActiveDirectoryManager.PopulateUser(DirectoryEntry entry) in C:\Source Control\ISL.CommonServices\ISL\Security\ActiveDirectory\ActiveDirectoryManager.cs:line 1135
at ISL.Security.ActiveDirectory.ActiveDirectoryManager.GetUser(UserLookupFilterType lookupFilterType, String lookupfilter, String domainName, Boolean getGroupCollection) in C:\Source Control\ISL.CommonServices\ISL\Security\ActiveDirectory\ActiveDirectoryManager.cs:line 161
at _Default.InitialiseSession()
at _Default.InitialisePage()
at _Default.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at ISL.Web.WebPageBase.OnLoad(EventArgs e) in C:\Source Control\ISL.CommonServices\ISL.Web\WebPageBase.cs:line 624
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.default_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Has anyone else ever experienced this? and if so, how do I resolve it?
Thanks
Lyndon