An Error 1301 Occurred While Enumerating The Groups
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might an error occurred while enumerating through a collection have Meta Discuss the workings and policies of this site About an error occurred while enumerating through a collection more data is available Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting
An Error Occurred While Enumerating Through A Collection Access Is Denied
ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million
An Error Occurred While Enumerating Through A Collection Collection Was Modified
programmers, just like you, helping each other. Join them; it only takes a minute: Sign up UserPrincipals.GetAuthorizationGroups An error (1301) occurred while enumerating the groups. After upgrading to Server 2012 Domain Controller up vote 20 down vote favorite 5 Research: Similar Issue with workaround, but not actual solution to existing problem Similar issue pointing to kb2830145 Microsoft End Point update as culprit The above links are the most suited to my problem, I have also viewed every similar question listed by Stack Overflow upon creating this post, and only the above referenced questions fit my issue. Background: I have been using UserPrincipal.GetAuthorizationGroups for permissions for specific page access running IIS 7.5 on Server 2008 R2 in a C#.NET 4.0 web forms site for 2 and a half years. On May 15 2013 we removed a primary Domain controller running Server 2008 (not r2) and replaced it with a Server 2012 Domain Controller. The next day we started receiving the exception listed below. I use Principal Context for Forms Authentication. The username/pass handshake succeeds and the auth cookie is properly set, but the subsequent Principal Context call that also calls UserPrincipal.GetAuthorizationGroups fails intermittently. We've resolved a few BPA issues that appeared in the Server 2012 Domain Controller but this has yet to resolve the issue. I also instituted a
/ Security Resolution for the group's SID could not be resolved Error November 8, 2014November 7, 2014 Adnan Masood I have recently encountered the following error when
Getauthorizationgroups The Group Could Not Be Found
enumerating through the UserPrincipal.GetAuthorizationGroups collection. System.DirectoryServices.AccountManagement.PrincipalOperationException: An error (1301) occurred while enumerating an error 1332 occurred while enumerating the group membership the member's sid could not be resolved the groups. The group's SID could not be resolved. The problem was introduction of the domain controller running getauthorizationgroups error Server 2012 while the machine running my application was win7 VM (applies to Win2K8 as well) With little googling, it appears that for the Windows 7 VM with introduction of 2012 http://stackoverflow.com/questions/17027781/userprincipals-getauthorizationgroups-an-error-1301-occurred-while-enumerating domain controller, this SID error appears to be a known issue. When a 2012 domain controller is involved, the GetAuthorizationGroups() function would fail on groups (SIDs) that are added to a user by default. Installing KB2830145 fixed my problem. References GetAuthorizationGroups() Fails on Windows 2008 R2/WIN7 StackOverflow: UserPrincipals.GetAuthorizationGroups An error (1301) occurred while enumerating the groups. After upgrading to Server 2012 http://blog.adnanmasood.com/2014/11/08/resolving-the-groups-sid-could-not-be-resolved-error/ Domain Controller KB2830145: SID S-1-18-1 and SID S-1-18-2 cannot be mapped on Windows-based computers in a domain environment Post navigation Previous Post Previous post: [Book Review] Angular JS ServicesNext PostWhy Functional Programming Matters? Next Post: Latest Tweets@adnanmasoodRT @MarkTabNet: Thanks @EdwardTufte @_brohrer_ @adnanmasood for being top engaged community members this week 🙂 - posted on 29/09/2016 10:06:42 Recent Posts Notes from Microsoft Machine Learning and Data Science Summit - Day 2 Notes from Microsoft Machine Learning and Data Science Summit - Day 1 Microsoft Machine Learning and Data Science Summit STEM - Robotics Season 2016-2017 Kickoff R tidyverse, dplyr and ggplot2 at Tampa Bay Data Science Group My Github ProjectsASCII-EBCDIC-ConverterCloud-PrizeDataSciencePythonDataStructures.PolyglotEuler.PolyglotGithubadnanmasoodAdnan MasoodPasadena, CA, US.14Public Repos0Public Gists8FollowersTagsapplications of temporal outlier detection Base Rate Bias Big Data C# CanStop Causation Code Correlation Data Science data streams Dissertation distributed data streams FIRST Lego League FLL GAC Gloabal Assembly Cache Hackathon Insight Interview Questions LaTeX LyX Machine Learning network outliers OnStart OnStop Powershell PsService1 Research Writing ROBOTICS Run ServiceBase ServiceName Software Architect Spark spatiotemporal outliers Statistics STEM temporal networks temporal outlier
26 0 Sign into vote ID 522539 Comments 9 Status Active Workarounds 2 Type Bug Repros 18 Opened 12/30/2009 https://connect.microsoft.com/VisualStudio/feedback/details/522539/clr-forum-error-calling-principal-getauthorizationgroups-in-winxp-sp3 1:04:06 AM Access Restriction Public Description Error "An error occurred while enumerating the groups. The group could not be found" occurs when calling Principal.GetAuthorizationGroups method.
Here is the code snippet:
Collection