Virtual Business Card


A Jack of all trades is a master of integration, as such an individual who knows enough from many learned trades and skills to be able to bring their disciplines together in a practical manner, and is not a specialist but can be an expert in many fields. Such a person is known as a polymath or a renaissance man; a typical example is someone like Leonardo da Vinci.

Monday, December 5, 2011

SPContext.Current.Web.Groups.GetByID() returns Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.

If you get this error, this is probably a permission problem and should return Access Denied. Try running the code
under SPSecurity.RunWithElevatedPrivileges.

Also check the group's property as by default it is set to be read by members only. Set it to everyone and you'll be sorted.

No comments:

Post a Comment