When attempting an SPWeb rename I receive the following SPException:
Exception SPException - The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again. - Failed to create workgroup registration entry
Any idea what might be the troubles here? Here is the relevant code:
SPSecurity.RunWithElevatedPrivileges(() =>
{
using (SPWeb thisWeb = site.OpenWeb(webUrl))
{
thisWeb.Title = newName;
thisWeb.Update();
}
});