Friday, May 16, 2008

BreakRoleInheritance throws Exception

Calling BreakRoleInheritance on a list throws exception if the method's CopyRoleAssignments parameter is set to false. Exception thrown is "The security validation for this page is invalid."

you can try folowwing option:

User true as the parameter and remove all permissions later in code.

1 comment:

Anonymous said...

Hey Thanks a lot Dude.
I was trying to solve this issue for around a week.
-Jack Peterson

Share your SharePoint Experiences with us...
As good as the SharePointKings is, we want to make it even better. One of our most valuable sources of input for our Blog Posts comes from ever enthusiastic Visitors/Readers. We welcome every Visitor/Reader to contribute their experiences with SharePoint. It may be in the form of a code stub, snippet, any tips and trick or any crazy thing you have tried with SharePoint.
Send your Articles to with your Profile Summary. We will Post them. The idea is to act as a bridge between you Readers!!!

If anyone would like to have their advertisement posted on this blog, please send us the requirement details to