ЖизниЛЕНТА

Copyright © 2007 Шапель Павел

Security validation in Sharepoint

with one comment

Была у нас как-то надобность программно удалять web prefix-ы в Sharepoint-e, однако при всяких наших манипуляциях вылетал следующая ошибка:

"The security validation for this page is invalid. Click Back in your Webbrowser, refresh the page, and try your operation again."

Здесь spiderwool.blogspot.com было найдено решение, которое собственно сводилось к выставлению Enabled для FormDigestSettings в false.

Итого

SPWebApplication webApp = web.Site.WebApplication;
webApp.FormDigestSettings.Enabled = false;

…Run code…
webApp.FormDigestSettings.Enabled = true;
spWebApp.Prefixes.Delete(url.Substring(1));

Written by Pash

Декабрь 31st, 2007 at 9:00 пп

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

Leave a Reply