Home > Could Not > An Error Occurred While Enumerating The Groups. The Group Could Not Be Found

An Error Occurred While Enumerating The Groups. The Group Could Not Be Found

Contents

Conference presenting: stick to paper material? While trying to retrieve the authorization groups, an error (5) occurred. 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? Related Sites Visual Studio Visual Studio Integrate VSIP Program Microsoft .NET Microsoft Azure Connect Forums Blog Facebook LinkedIn Stack Overflow Twitter Visual Studio Events YouTube Developer Resources Code samples Documentation Downloads

The issue wasn't really hard to solve as the solution was easy to find online, but I think it's a great example of the type of application/code to give a special Please feel free to let my manager know what you think of the level of service provided. whith the message: An error (1301) occurred while enumerating the groups. Why does the state remain unchanged in the small-step operational semantics of a while loop? http://stackoverflow.com/questions/17027781/userprincipals-getauthorizationgroups-an-error-1301-occurred-while-enumerating

An Error Occurred While Enumerating The Groups. The Group Could Not Be Found

SamAccountName, username); | | var groups = p.GetAuthorizationGroups(); | | foreach (GroupPrincipal group in groups) | { | results.Add(group.SamAccountName); | } | | I can use the p.GetGroups() function and it One day we implemented some rights according to AD groups. That worked for a little while, then started failing intermittently on "bad username or password". Privacy statement Dev Centers Windows Office More...

To simplify granting accounts permission to query a user's group information, add accounts that need the ability to look up group information to the Windows Authorization Access Group. You can send feedback directly to my manager at: ms****@microsoft.com. ================================================== Get notification to my posts through email? Please review the stack trace for more information about the error and where it originated in the code. Kb2830145 When passing user which is in Administrator group, it works fine.

Regards, Allen Chen Microsoft Online Community Support Nov 18 '08 #7 P: n/a Allen Chen [MSFT] Hi Jerry, Do you have any progress on this issue? Getauthorizationgroups Vs Getgroups 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 share|improve this answer answered Dec 3 '14 at 15:55 Roger 1 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign you can try this out Why does argv include the program name?

Note: MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 2 business day is acceptable. Getauthorizationgroups Nomatchingprincipalexception I found this method on the following microsoft website. Hope this helps Thank You, -- Jerry Nov 17 '08 #6 P: n/a Allen Chen [MSFT] Hi Jerry, First I would suggest you add Anonymous Logon to the Windows Authorization Access Therefore, applications may not have access to the tokenGroupsGlobalAndUniversal attribute; in this case, the AuthzInitializeContextFromSid function fails with ACCESS_DENIED.

Getauthorizationgroups Vs Getgroups

Browse other questions tagged c# active-directory windows-server-2012 domaincontroller or ask your own question. dig this The actual property was populated in Active Directory but it was incorrectly being returned with a null value by the API. An Error Occurred While Enumerating The Groups. The Group Could Not Be Found However, after it was installed we got a different intermittent error. Getauthorizationgroups The Group Could Not Be Found 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

Posted by pantonis21 on 2/3/2012 at 4:55 AM "Thanks for the raising the issue, however we wanted to give you an update, that since there is a reasonable workaround and guidance I tried creating the PrincipalContext with an alternative constructor supplying my username and password but it didn't make any difference to the behaviour. 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() The first thing that came So you have to send in just purely the username "Hussein". Userprincipal.getauthorizationgroups Example

This was our last line of thinking around June 27th when we spun up a Server 2012 dev environment. We have a dev server on 2008 R2 and a prod server in 2012. Feb 26 '14 at 15:28 | show 6 more comments 8 Answers 8 active oldest votes up vote 17 down vote accepted I have just run into this same issue and Regards, Allen Chen Microsoft Online Support Delighting our customers is our #1 priority.

Is it illegal for regular US citizens to possess or read documents published by Wikileaks? "the Member's Sid Could Not Be Resolved" The transformation T on the set of all continuous functions that is defined by T(f) = f (1) is a linear transformation. Will monitor for issues. // test membership in SuperUsers const string superUsersGroupName = "MyApp-SuperUsers"; using (var superUsers = GroupPrincipal.FindByIdentity(principalContext, superUsersGroupName)) { if (superUsers != null && user.IsMemberOf(superUsers)) // add to the

We are routing this issue to the appropriate group within the Visual Studio Product Team for triage and resolution.

slams skull into desk –Pynt Jun 20 '13 at 11:59 1 We got the same issue few weeks ago. current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. share|improve this answer answered Aug 17 '10 at 9:23 Rob 30.7k1684112 Thanks Rob, I have tried many combinations in the PrincipalContext constructor with not luck. Getauthorizationgroups C# This function works on the local domain but does not work on the other domain.

It worked fine on 2012 but our dev server was doomed. You can send feedback directly to my manager at: ms****@microsoft.com. ================================================== Get notification to my posts through email? What are oxidation states used for? That seems to work.

The production server is still functioning terribly. If someone don't wanna used "LDAP", use this code. We were running Windows Server 2012 R2 Essentials with two Windows 8.1 Enterprise workstations joined to the domain. how can you tell if the engine is not brand new?

Since I'm not dedicated to AD development I need to communicate with other specialists to get some helpful information. Applications that use this function should correctly handle this error and provide supporting documentation. 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 Microsoft That being the case it seemed a reasonable change to make.

It is for a remote application running on SBS. Putting pin(s) back into chain 5008 out of the box In the United States is racial, ethnic, or national preference an acceptable hiring practice for departments or companies in some situations? Ultimately, I believe this is a bug in the framework, and that the method should not crash because of tombstoned/unresolvable SIDS. Please check if current user running the process has been added to the Windows Authorization Access Group.

IQ Puzzle with no pattern With modern technology, is it possible to permanently stay in sunlight, without going into space? Since this group is dedicated to ASP.NET I suggest you contact CSS for incident based support: http://support.microsoft.com/select/...tance&ln=en-us Our dedicated support engineer will work with you on this issue. Why is water evaporated from the ocean not salty? Browse more ASP.NET Questions on Bytes Question stats viewed: 11483 replies: 7 date asked: Nov 11 '08 Follow this discussion BYTES.COM 2016 Formerly "TheScripts.com" from 2005-2008 About Bytes | Advertise