The security validation for this page is invalid in SharePoint
While doing coding you must be familiar with following error. “The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again” The above error you will face in two cases. 1. When you do updates in GET requests. 2. When you have a least permissions in the SharePoint site, create or update an item. 3. Even though you have full permissions you may face this error in Post requests. When you do search for resolution in google every one suggest to use following statement. web.AllowUnsafeUpdates = true; ... ... web.AllowUnsafeUpdates = false; But we should only use above property when you are doing any updates in GET request it means page load event. Allowing updates in page load might allow Cross-site request forgery (CSRF or XSRF) security attacks due to this by default SharePoint will not allow any updates in the site especially in GET requests. So If you have a situation that you must have to do some i...