title: active directory findone() method
body: <p>im trying to inquire Ad by using this line`s</p>
  
  <pre><code>            DirectoryEntry de = null;
              SearchResult results = null;
              de = new DirectoryEntry();
  
              //geting the result FROM ad
              de.Path = dr.manager;
              de.AuthenticationType = AuthenticationTypes.Secure;
              DirectorySearcher search = new DirectorySearcher(de);
              search.Filter = string.Format("(objectClass={0})",'*');
              search.PropertiesToLoad.Add("IsraelID");
              results = search.FindOne();
              de = results.GetDirectoryEntry();
  </code></pre>
  
  <p>but im getting an exception in the findone() </p>
  
  <pre><code>System.Runtime.InteropServices.COMException (0x80004005): Unspecified error
  
     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()
  </code></pre>