Answered by:
Security Issue while uploading documents to sharepoint library.

Question
-
Hi All,
I am getting security issue while uploading documents in a loop base on the logic using console app. After uploading about 100 documents.
Error: The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.
I have already tried with below options
1) oWeb.AllowUnsafeUpdates = true;
2) oWeb.Site.AllowUnsafeUpdates = true;
3) oWeb.Site.WebApplication.FormDigestSettings.Enabled = false;None of the work for me.
Immediate help will be greatly appreciated.
Answers
All replies
-
Have you looked at:
http://www.sharepoint-tips.com/2007/09/security-validation-for-this-page-is.html
SharePoint - Nauplius Applications
Microsoft SharePoint Server MVP
MCITP: SharePoint Administrator 2010
-----------------------
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
-
Can you please provide what exceptions are getting logged in 14 hive log folder or exact security exception which you might have caught
- Edited by SPNeek2011 Thursday, January 17, 2013 8:56 PM
-
-
Check this link, http://www.ktskumar.com/blog/2009/03/upload-document-from-local-machine-to-sharepoint-library/
This blog post explains how to upload the document to SharePoint using WebService
-
-