Sharepoint:The security validation for this page is invalid. Click Back in your Web browserSharepoin
2013-08-12 11:29
761 查看
Sometimes while trying to delete documents or move documents from one library to another we get an error "The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again” while trying to move
documents from one document library to another document library."
This error is caused due to security validation. So there should be a way out to turn it off. One method to turn off security is:
Central Administration—>application management—->web application general settings–>turn security validation off
But, if we always keep it on there might be danger of malicious code.
So, we should handle this through coding, turn off security validation for our code to execute and then again turn it on.
SPWeb ospWeb = SPContext.Current.Web;
Microsoft.SharePoint.Administration.SPWebApplication webApp = ospWeb.Site.WebApplication;
webApp.FormDigestSettings.Enabled = false;
// our code should be inserted here
webApp.FormDigestSettings.Enabled = true;
For more details, visit http://techolyvia.wordpress.com/2008/10/24/the-security-validation-for-this-page-is-invalid-click-back-in-your-web-browser-refresh-the-page-and-try-your-operation-again/
/article/7005495.html
documents from one document library to another document library."
This error is caused due to security validation. So there should be a way out to turn it off. One method to turn off security is:
Central Administration—>application management—->web application general settings–>turn security validation off
But, if we always keep it on there might be danger of malicious code.
So, we should handle this through coding, turn off security validation for our code to execute and then again turn it on.
SPWeb ospWeb = SPContext.Current.Web;
Microsoft.SharePoint.Administration.SPWebApplication webApp = ospWeb.Site.WebApplication;
webApp.FormDigestSettings.Enabled = false;
// our code should be inserted here
webApp.FormDigestSettings.Enabled = true;
For more details, visit http://techolyvia.wordpress.com/2008/10/24/the-security-validation-for-this-page-is-invalid-click-back-in-your-web-browser-refresh-the-page-and-try-your-operation-again/
/article/7005495.html
相关文章推荐
- Sharepoint:The security validation for this page is invalid. Click Back in your Web browser
- The security validation for this page is invalid. Click Back in your Web错误
- SharePoint解决The security validation for this page is invalid.
- RFS(六)Open Browser后,页面显示This is the initial start page for the WebDriver server.的解决办法
- 中了"The state information is invalid for this page and might be corrupted"的圈套!
- The state information is invalid for this page and might be corrupted解决办法
- The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the ser
- 页面显示This is the initial start page for the WebDriver server.的解决办法
- [SharePoint知识库] 导出List为Template时,提示 The specified gallery is not available for this Web site collection.
- 错误处理:The viewstate is invalid for this page
- Using Claims in your Web App is Easier with the new OWIN Security Components
- Debug 之 The state information is invalid for this page and might be corrupted
- Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in
- selenium启动IE报错:页面提示:This is the initial start page for the WebDriver server.
- Sharepoint Error : The URL "filename" is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web
- "The state information is invalid for this page and might be corrupted"错误的一个解决办法
- asp.net中错误:"The state information is invalid for this page and might be corrupted."
- The web.config file for this project is missing the required DirectRequestModule.
- This version of the rendering library is more recent than your version of ADT plug-in. Please update
- [SharePoint 2010] 关于 "Error message when view or edit in browser for Word or PowerPoint Web Apps” 错误