LDAP Directory Error Message The server is not operational.

  • Thread starter Thread starter RaghuAriga
  • Start date Start date
R

RaghuAriga

Guest
HI Folks,



I am getting Error While Connection to LDAP AD intermittenlty. out of 200 times the search called it is Returning this Error Message The server is not operational only 20 to 25 Seraches and remaing all searche are sucussfull for the same Input. Not able to figure it out why it is failed for some Trnasactions only as the LDAP path and Credentials are same for all Searches

The error Message is:

An unhandled exception of type 'System.Runtime.InteropServices.COMException' The server is not operational


Can any one PLs share some input on this why LDAP is thowring this Error

try
{
DirectoryEntry de = new DirectoryEntry(URI, Username, Pwd, AuthenticationTypes.None);
DirectorySearcher dsearch = new DirectorySearcher(de);
dsearch.ClientTimeout = new TimeSpan(0, 0, 30);
dsearch.Filter = string.Format("accountId={0}", AccId);
dsearch.SearchScope = SearchScope.Subtree;
SearchResult sr = null;
sr = dsearch.FindOne();
if(sr!== null
{ // code to cross validate User Input }
}
}
catch (Exception ex)
{ throw ex; }
finally
{
if (de != null)
de.Dispose();
if (dsearch != null)
dsearch.Dispose();
}

URI: LDAP://ldap***.****.com:****/o=*****.com/ou=people Username: uid=*****, ou=*********, o=*****.com Pwd: ******



Continue reading...
 
Back
Top