Home Dashboard Directory Help

OverflowException when Validate user using ActiveDirectoryMembershipProvider by Joey Li



Sign in
to vote
Type: Bug
ID: 777346
Opened: 1/23/2013 11:27:15 PM
Access Restriction: Public
User(s) can reproduce this bug


Environment Description:
Windows Server 2008 Standard (x64)
.NET Framework 4 (x64)
IIS Setting - Enable 32-Bit Applications = True
Windows Domain Controller (x86)

The ASP.NET application works fine using the ActiveDirectoryMembershipProvider for Authentication when the IIS just startup. However, after running for about 3-4 hours, OverflowException was thrown with the following StackTrace.

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() 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.FindUser(DirectoryEntry containerEntry, String filter, DirectoryEntry& userEntry, Boolean& resetBadPasswordAnswerAttributes) at
System.Web.Security.ActiveDirectoryMembershipProvider.GetUser(String username, Boolean userlsOnline) at
System.Web.Security.Membership.GetUser(String username, Boolean userlsOnline) at
xxx.Web.btnLogin_Click(Object sender, EventArgs e) in ???:line ???

The only way I can resolve this problem is to recycle the IIS process.
Once recycled the process, the ASP.NET application work fine again for another 3-4 hours.

Any permanent solution?
Sign in to post a comment.
Posted by Microsoft on 1/24/2013 at 1:08 AM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 1/23/2013 at 11:50 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.