Security Issue while uploading documents to sharepoint library. RRS feed

  • 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.

    Thursday, January 17, 2013 4:33 PM


  • Thanks for the help. Issue is fixed. Actually the issue is the code is doing web.allowunsafeupdate=false. which copy pasted from some other app. 

    Basically its copy paste issue. 

    • Marked as answer by Tech-Fun Friday, January 18, 2013 5:02 PM
    Friday, January 18, 2013 5:02 PM

All replies