Home > sharepoint 2007 > Security Validation error in sharepoint

Security Validation error in sharepoint

 While creating one of the sites from the browser i came an error saying The security validation for this page is invalid. Click Back in your Webbrowser, refresh the page, and try your operation again
I got bit confused as i didn’t know where to find and sort it out so i checked few sections in central admin site found one place. You can check for this :

  • Navigate thru the following Central Administration Site->application management->web application settings->”turn security validation off”

If above is ok then you may also check out below alternate

  • The Windows SharePoint Services Web site is configured to use Anonymous Access in addition to another method of authentication, such as Basic Authentication. Turn off the Basic Authentication from ISS->your sharepoint site-> right click properties->Directory Security tab
  • The last alternate is if you need code fix
using (SPSite site = new SPSite(parentSiteUrl))
{       
site.AllowUnsafeUpdates = true;       
using (SPWeb web = site.OpenWeb())       
{           
web.AllowUnsafeUpdates = true;           
SPList list = web.Lists[“mylist”];           
_listItem = clientsList.Items.Add();           
_listItem[“Title”] = “test”;           
_listItem.Update();                   
}       
}
}
One of the above alternate should help you out
Advertisements
Categories: sharepoint 2007 Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: