I have a routine that searches ldap..its always worked fine...until today I canceled out of teh routine during a dev debug test... it was working fine and I closed the app in the middle of the routine.. tried to run it again it again and now I keep getting this error.

System.InvalidOperationException: The value for the property PageSize cannot be set.
   at System.DirectoryServices.DirectorySearcher.DoSetSearchPrefs(IDirectorySearch adsSearch, AdsSearchPreferenceInfo[] prefs)
   at System.DirectoryServices.DirectorySearcher.SetSearchPreferences(IDirectorySearch adsSearch, Boolean findMoreThanOne)
   at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
   at System.DirectoryServices.DirectorySearcher.FindAll()


This is my code fr the search


                DirectoryEntry entry = omnifrmwk.InternalClasses.LDAPMe ...

Go to the complete details ...