Home > Error Occurred > An Error Occurred While Enumerating The Groups

An Error Occurred While Enumerating The Groups

Contents

Gary share|improve this answer answered Oct 15 '13 at 14:45 Gary Hill 18614 Thanks for the info. UPDATE 13-JUN-2013: On the 12th of June I addressed the possibility of items not disposed causing the issue. The workaround although it works, causes performance issues. Posted by mohlsen on 4/15/2010 at 8:09 AM This is apparently do to the fact that there are SIDs in the GroupPrincipal objects returned that cannot be resolved in AD. navigate here

How does Google know where I am? Installing KB2830145 fixed my problem. Thank you for the suggestion. –Pynt Aug 26 '13 at 21:00 add a comment| up vote 1 down vote If anyone is interested this is a VB.NET version of the same Updated today and will continue to monitor the issue. http://stackoverflow.com/questions/17027781/userprincipals-getauthorizationgroups-an-error-1301-occurred-while-enumerating

An Error Occurred While Enumerating Through A Collection

Privacy statement Dev Centers Windows Office More... We've resolved a few BPA issues that appeared in the Server 2012 Domain Controller but this has yet to resolve the issue. Put a breakpoint on that line and when the program halts, check whether the user exists –quetzalcoatl Aug 17 '12 at 14:02 hm.. Posted by Ron Verheij on 10/2/2013 at 1:56 AM I had the same issue (.NET4.5) and it cost us a little project delay.

The group SID enumeration failure occurred every 12 hours over the weekend, and resolved itself every 12 hours. As I read your story and the different answers, I can confirm that the problem is most likely the one pointed by @Gary Hill below. See this thread on the MSDN forums for an example:http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/9dd81553-3539-4281-addd-3eb75e6e4d5d Attach a file Microsoft Connect Terms of Use Trademarks Privacy Statement © 2016 Microsoft Please wait... An Internal Error Occurred While Enumerating Backup Sets The group's SID could not be resolved.

are you creating a local or domain user? - see above comment –quetzalcoatl Aug 17 '12 at 14:03 Actually, I have no other ideas than that, sorry:/ –quetzalcoatl Aug Suddenly my call to user.GetAuthorizationGroups() started failing; I was getting the same exception you were (error 1301). Find out what we do to ensure the Highest level of customer satisfaction and product quality. https://connect.microsoft.com/VisualStudio/feedback/details/522539/clr-forum-error-calling-principal-getauthorizationgroups-in-winxp-sp3 After upgrading to Server 2012 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

His customer had a Windows 2008 R2 server with a custom .NET application on it. An Internal Error Occurred While Enumerating Backup Sets Server 2008 Can Customs make me go back to return my electronic equipment or is it a scam? sometimes occassionally you find a user or group that is displayed not by name, but by it's SID. How to indicate you are going straight?

An Error Occurred While Enumerating Through A Collection More Data Is Available

Why us? Here is how I create the User: pc = new PrincipalContext(ContextType.Machine); currentUser = UserPrincipal.FindByIdentity(pc, u.UserName); if (currentUser == null) { currentUser = new UserPrincipal(pc) { Name = u.UserName, Description = u.UserDescription, An Error Occurred While Enumerating Through A Collection I enclose a cut down version of our GetRolesForUser code to demonstrate the change in place. An Error Occurred While Enumerating Through A Collection Access Is Denied These specialized experts will follow-up with your issue.

Terms and conditions of support Detailed provisions, benefits, ordering and technical support model information. check over here Please enter a comment. How to deal with a DM who controls us with powerful NPCs? I get this exact error in one of the very large domains where group membership can include 50+ different groups. An Error Occurred While Enumerating Through A Collection Collection Was Modified

Potion of Longevity and a 9 year old character How to deal with a DM who controls us with powerful NPCs? auth-users and interactive are normal and always known to the system.. I don't believe that our AD list will take a large amount of time to validate for orphaned SID's. http://svbuckeye.com/error-occurred/an-error-occurred-while-enumerating-the-websites.php No problem.

I believe these would be what are known as "tombstoned" SIDS in active directory. An Error Occurred While Trying To Enumerate Your Resources The problem was introduction of the domain controller running Server 2012 while the machine running my application was win7 VM (applies to Win2K8 as well) With little googling, it appears that The logging showed a stack trace that started at UserPrincipals.GetAuthorizationGroups and gave the message: An error (1301) occurred while enumerating the groups.

We also had pre-2012 DCs in place and so we experienced the issue intermittently.

These are most likely bogus SIDs that may be removed.http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/9dd81553-3539-4281-addd-3eb75e6e4d5dI will post my workaround in the Workaround section. However, after it was installed we got a different intermittent error. At some point I will roll back the .NET updates that were installed on the 15th of May and see if things iron out, but for now I'll continue to correct An Error Occurred While Applying Security Information To Failed To Enumerate An error occurred while enumerating the groups.

CLR forum: Error calling Principal.GetAuthorizationGroups in WinXP SP3 - by CSSForumEngineer Status : Active 26 0 Sign into vote ID 522539 Comments 9 Status Active Workarounds 2 Type Bug Repros The production server is still functioning terribly. 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 weblink Marked as answer by Min ZhuMicrosoft contingent staff, Moderator Monday, July 08, 2013 8:09 AM Wednesday, June 26, 2013 2:39 PM Reply | Quote Moderator All replies 0 Sign in to

Blogs CodeTwo Blog Latest news straight from the horse's mouth: events, software releases, updates, Outlook help and more. I have pretty much this exact same code running on a web site form used to perform user security group lookups across the different domains. I find it stunning to see that we just need the work around and that more users will have to experience this issue. All rights reserved.

The group's SID could not be resolved 10 Does PrincipalSearchResult automatically dispose all elements in its collection? Log in Log in to the partner panel to manage your subscriptions, access marketing materials and monitor your partner status. Not the answer you're looking for? We'll put you in touch with them.

I hope Microsoft will not continue tread customers in this way and solve the bug in .NET 5.0. Copyright 2006-2015 vbCity.com LLC Skip to content HomeAbout404ContactTools Facebook Twitter Google Plus Linkedin Instagram YouTube Pinterest Tumblr VK RSS Search Search for: Close R&D Adnan Masood, a Machine Learning Phd's musings more hot questions question feed lang-cs about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation