we have migrated the asp.net application from .net framework 3.5, iis 7.0, Windows server 2008 R2 to .net framework 3.5, iis 8.5, Windows server 2012. AD is not working properly. once the app pool recycled, application working after sometime it is not working.
I'm getting the following intermittent errors related to querying AD using DirectorySearcher.FindOne() or FindAll().
System.DirectoryServices.DirectorySearcher causing “Arithmetic operation resulted in overflow” errors
System.OverflowException: Arithmetic operation resulted in an overflow. at System.DirectoryServices.SearchResultCollection.ResultsEnumerator.GetCurrentResult() at System.DirectoryServices.SearchResultCollection.ResultsEnumerator.get_Current() at System.DirectoryServices.SearchResultCollection.ResultsEnumerator.System.Collections.IEnumerator.get_Current()