Security Validation for this pageWe recently moved some users from other domain to Production domain. Now when they try to delete or move documents in a document library they are getting following error :

"The Security validation for this page is invalid. Click back in your web browser, refresh the page, and try your operation again."

Please help this is an urgent issue.

2 Answers 2


Sometimes whenever we update any list item, list or SPWeb instance you may get

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

This is because of some security validation while updating the modification to the content database, so, in order to escape from that exception we have to make AllowUnsafeUpdates property of the SPWeb instance as true.

SPWeb oWeb = new SPWeb();

oWeb.AllowUnsafeUpdates = true;

AllowUnsafeUpdates property is used to Gets or sets a Boolean value that specifies whether to allow updates to the database as a result of a GET request or without requiring a security validation. SPSite class also has this property.




We used and alternate option to delete the files and folders using the delete icon in ribbon.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.