Skip to main content
added 90 characters in body
Source Link
web.RoleDefinitions.BreakInheritance(true, true);
web.Update();

if you target the roledefinitions instead of the spweb this will get rid the error message

web.RoleDefinitions.BreakInheritance(true, true);
web.Update();
web.RoleDefinitions.BreakInheritance(true, true);
web.Update();

if you target the roledefinitions instead of the spweb this will get rid the error message

deleted 13 characters in body
Source Link
Robert Lindgren
  • 24.5k
  • 12
  • 53
  • 79

web.RoleDefinitions.BreakInheritance(true, true); web.Update();

web.RoleDefinitions.BreakInheritance(true, true);
web.Update();

web.RoleDefinitions.BreakInheritance(true, true); web.Update();

web.RoleDefinitions.BreakInheritance(true, true);
web.Update();
Source Link

web.RoleDefinitions.BreakInheritance(true, true); web.Update();