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

An Error Occurred While Enumerating The Groups

Contents

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 Ideas on eliminating possible causes would also be appreciated. Client list Some of the major companies from around the world using our applications. The group's SID could not be resolved 10 Does PrincipalSearchResult automatically dispose all elements in its collection? this contact form

Patching the server running the application was enough in order to fix this. Private Function getGroupsNew(theusername As String) As List(Of String) Dim lstGroups As New List(Of String) Try Dim allDomains = Forest.GetCurrentForest().Domains.Cast(Of Domain)() Dim allSearcher = allDomains.[Select](Function(domain) Dim searcher As New DirectorySearcher(New DirectoryEntry("LDAP://" + However, I believe recent events may direct me back to migrating everything to the 2012 environment. in SystemTools there's an applet ComputerManagement where you can browse most of the User and Groups registrations.

An Error Occurred While Enumerating Through A Collection

All rights reserved. The application seemed to stop working from time to time. The issue is still occurring, and I'm still optimizing code hoping for the best.

Also I have deleted all the users that I have created and when I create a new one above this I still get the same error. –twreid Aug 17 '12 at How about this one:http://stackoverflow.com/questions/16341620/userprincipals-getauthorizationgroups-an-error-1301-occurred-while-enumerating Best regards,Mike Feng MSDN Community Support | Feedback to us Develop and promote your apps in Windows Store Please remember to mark the replies as answers if I use Principal Context for Forms Authentication. An Internal Error Occurred While Enumerating Backup Sets Suddenly my call to user.GetAuthorizationGroups() started failing; I was getting the same exception you were (error 1301).

Is it possible the error you are receiving is because SIDS are getting tombstoned every 12 hours by a separate unrelated process? An Error Occurred While Enumerating Through A Collection More Data Is Available This was our last line of thinking around June 27th when we spun up a Server 2012 dev environment. We found out that when we implemented a new secondary AD server on 2012, the dev server was linked to it, while other servers linked to primary AD on 2008 R2 https://connect.microsoft.com/VisualStudio/feedback/details/522539/clr-forum-error-calling-principal-getauthorizationgroups-in-winxp-sp3 When passing user which is in Administrator group, it works fine.

Posted by wdudek on 12/31/2009 at 9:17 AM I also just tried this on Server 2003 SP 2 and had the same problem. An Internal Error Occurred While Enumerating Backup Sets Server 2008 How to indicate you are going straight? I also do the same thing with the IIS_IUSRS group and that one is fine. I'm currently enclosing the iEnumerable items in [using] statements while trying to track down issues via perfmon.

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

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 Submit Posted by taschultz on 5/29/2014 at 9:03 AM I ran into this issue within a very small virtual domain environment (Windows Server 2012 R2 Essentials, 2 Windows 8.1 Enterprise Clients). An Error Occurred While Enumerating Through A Collection I wrote var sids = new List<weblink Can I travel inside the US with a digital copy of my passport and visa? And performance is very crucial.Wish you fix it as soon as possible Posted by Microsoft on 6/21/2010 at 9:40 AM Thanks for the raising the issue, however we wanted to give Created November 15, 2015 Author DocsAdmin Category Troubleshooting Description When trying to login to OP SmartDesk using LDAP Authentication you get the following error: “Get authorization group exception: An error (1301) An Error Occurred While Enumerating Through A Collection Collection Was Modified

Online support center Technical documentation, manuals, articles, videos, tutorials and downloads for all CodeTwo products. Why did companions have such high social standing? The 12 hour fail window is still holding strong. http://crearesiteweb.net/error-occurred/an-error-occurred-while-enumerating.html In my research I found a thread that looks unrelated, but actually has the same stack trace.

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. An Error Occurred While Trying To Enumerate Your Resources UPDATE 13-JUN-2013: On the 12th of June I addressed the possibility of items not disposed causing the issue. Browse other questions tagged c# active-directory windows-server-2012 domaincontroller or ask your own question.

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.

Not the answer you're looking for? Though I'm not sure why it would just now be an issue after two years. Error checking user permissions. An Error Occurred While Applying Security Information To Failed To Enumerate share|improve this answer answered Aug 23 '13 at 18:13 Bri 111 I read a bit on the unresolved SID issue prior to putting this task on the back burner,

The code Iused is below using (var principalContext = his comment is here The group SID enumeration failure occurred every 12 hours over the weekend, and resolved itself every 12 hours.

Why are some programming languages turing complete but lack some abilities of other languages? Maybe you are trying to update a Group's MemberList before the new user is registered in the system at all? I worked out the case sensitive stuff. 3) The method GetGroupsNew takes a username and returns a list of groups 4) The method isMemberofnew takes a username and a group and Browse other questions tagged c# or ask your own question.