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

An Error 1301 Occurred While Enumerating The Groups

Contents

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 Client list Some of the major companies from around the world using our applications. Home About Home Kerberos FIM About RSS Search 1 comments S.DS.AM GetAuthorizationGroups() Fails on Windows 2008 R2/WIN7 Published on Thursday, September 25, 2014 in Active Directory, Windows 2008 R2 Today I After upgrading to Server 2012 Domain Controller MS fix http://support.microsoft.com/kb/2830145 share|improve this answer answered Aug 7 '14 at 19:04 Tilo 311316 add a comment| up vote 0 down vote I had this contact form

Admin's Blog Windows Server, Exchange, Office 365 and more – a spam-free diet of tested tips and solutions. We'll put you in touch with them. References GetAuthorizationGroups() Fails on Windows 2008 R2/WIN7 StackOverflow: UserPrincipals.GetAuthorizationGroups An error (1301) occurred while enumerating the groups. Feb 12 Error 1301 Occurred while enumerating the groups.

An Error Occurred While Enumerating Through A Collection

I'm currently enclosing the iEnumerable items in [using] statements while trying to track down issues via perfmon. I enclose a cut down version of our GetRolesForUser code to demonstrate the change in place. Thanks Skeletank. –user936503 Mar 26 '14 at 16:47 I thought this solved my problem but when the user in question only belongs to 1 group, this throws: Unable to The group could not be found."http://social.msdn.microsoft.com/Forums/en/netfxbcl/thread/b4dee794-7ca7-4d7c-b609-17a87fea2df8However, I am trying to use the UserPrincipal.IsMemberOf(Group) function with a similar problem.

As many have noted this method call seems rather fragile and we will probably look at implementing some alternative approach before we hit other issues. Wptheme by Paddsolutions. Is there a proof that is true for all cases except for exactly one case? Kb2830145 Can an opponent folding make you go from probable winner to probable loser?

The group's SID could not be resolved. Posted by teatime on 3/10/2010 at 1:47 AM Is there any update on this, I found one other hit on Google that matched the error:"An error occurred while enumerating the groups. Few things you have to do before this code can work 1) You have to reference the assembly System.DirectoryServices 2) Make sure to pass "theusername" variable without the domain, so if http://www.codetwo.com/kb/error-1301/ So, I changed it to user.GetGroups().

Contact Go to Contact page » LiveChat Use LiveChat to quickly get the basic sales information about our programs. Getauthorizationgroups The Group Could Not Be Found Why us? 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, Our mission Take a moment to learn what principles and values we follow in our work. 30-day money back guarantee Learn about our 30-day money back guarantee program.

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

Blogger Template by Anshul. https://social.msdn.microsoft.com/Forums/vstudio/en-US/4ba8a615-2610-40ae-951e-4b4ace74f869/cant-get-all-groups-a-user-is-member-of?forum=netfxbcl The workaround although it works, causes performance issues. An Error Occurred While Enumerating Through A Collection 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 Access Is Denied A reboot yesterday at 7:48 AM to restore functionality was followed up roughly 12 hours later at 7:54 PM causing the error again.

Microsoft have released a hotfix for this issue which can be downloaded below. weblink Partners Go to Partners page » Become our partner Team up with us to become our reseller, consultant or strategic partner. 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 In short, it seems that when a 2012 We also had pre-2012 DCs in place and so we experienced the issue intermittently. An Error Occurred While Enumerating Through A Collection Collection Was Modified

Disclaimer: This is my first post to Stack Overflow, I often research here but have not joined in discussions until now. We thought we were home free after installing this hotfix. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.Would you like to participate? http://lanprolab.net/an-error/an-error-occurred-while-communicating-with-the-server-google-groups.php Unfortunately they have me on a 6 month task at the moment so there is no telling when my free time will allow for this test.

We've resolved a few BPA issues that appeared in the Server 2012 Domain Controller but this has yet to resolve the issue. An Error 1332 Occurred While Enumerating The Group Membership The Member's Sid Could Not Be Resolved Username.Substring(0, Username.IndexOf("\\")) : string.Empty; string username = Username.Contains("\\") ? Instead of calling either of those, after constructing the user object, I also construct a group object, one for each group I want to see if the user is a member

How to deal with a DM who controls us with powerful NPCs?

Sign in Gallery MSDN Library Forums Get started for free Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by: Can't Company Go to Company overview » About us Meet the CodeTwo team and read about the company’s history. Microsoft has published a hotfix for this problem which is available on their website along with detailed description. Getauthorizationgroups Error 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.

Privacy statement Dev Centers Windows Office More... Please download and install the hotfix to avoid security issues when running CodeTwo Exchange Rules PRO 2.x. 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 http://lanprolab.net/an-error/an-error-occurred-when-populating-microsoft-crm-user-groups.php The group could not be found" occurs when calling Principal.GetAuthorizationGroups method. Here is the code snippet: Collection results = new Collection(); using (PrincipalContext context = new PrincipalContext(ContextType.Domain, "domain1", "domain1\\user1", "password1")) { try

Thus far we've found on one web server that there is no pattern to the days at which it fails, but it will recover within roughly 12 hours. at System.DirectoryServices.AccountManagement.SidList.TranslateSids(String target, IntPtr[] pSids) at System.DirectoryServices.AccountManagement.SidList..ctor(SID_AND_ATTR[] sidAndAttr) at System.DirectoryServices.AccountManagement.AuthZSet..ctor(Byte[] userSid, NetCred credentials, ContextOptions contextOptions, String flatUserAuthority, StoreCtx userStoreCtx, Object userCtxBase) at System.DirectoryServices.AccountManagement.ADStoreCtx.GetGroupsMemberOfAZ(Principal p) at System.DirectoryServices.AccountManagement.UserPrincipal.GetAuthorizationGroups() Question: Given the above information, After a reboot the application seemed to work for a while. Exception: Exception information: Exception type: PrincipalOperationException Exception message: An error (1301) occurred while enumerating the groups.

Upcoming events All the info you need about our conference appearances, webinars, product demos, Q&As, contests and more. We are hoping to see if it is just a specific server communication issue or to see if it is the entire set of Domain Controllers. Error checking user permissions. All rights reserved.

First of all, install the hotfix mentioned by Gary Hill. The issue resolves itself temporarily upon web server reboot, and also on the dev server it will resolve itself after 12 hours of not functioning. When passing user which is in Administrator group, it works fine. Why did companions have such high social standing?

Fig. 1.