Hello,
We are seeing the below error when page calls "Membership.GetUser". User is able to login but when user try to view or edit user information user is getting below error on production website only. this issue is not happening on Dev or Test website.
Exception message: The server is not operational.
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.Web.Security.ActiveDirectoryMembershipProvider.FindUser(DirectoryEntry containerEntry, String filter, SearchScope searchScope, Boolean retrieveSAMAccountName, DirectoryEntry& userEntry, Boolean& resetBadPasswordAnswerAttributes, String& sAMAccountName)
at System.Web.Security.ActiveDirectoryMembershipProvider.GetUser(String username, Boolean userIsOnline)
LDAP connection string : LDAP://mydomain.xxx.zzz/OU=UA,DC=mydomain,DC=xxx,DC=zzz - We have multiple domain controllers in this AD store.
ASP.NET 4.0, C#, .NET Framework 4.0, Windows Server 2008 R2
This is mostly happening on production website only. recycling application pool has been fixing this issue for us but we are trying to avoid doing that because its disturbing our clients.
Can you please suggest what is the cause and how to fix it?
Thank you!