August 21, 2007

MOSS: BreakRoleInheritance throws exception

Problem:
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."

Workaround:
Use true as the parameter and remove all permissions later in code.

Solution:
Unknown

1 comment:

  1. Thanks. I spend a lot of time without solution and you help me with this problem

    ReplyDelete