Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

We recently applied the June 2011 Cumulative Update on our MOSS 2007 servers and had the February 2011 CU before that.

Since we installed the June CU all our custom application pages (e.g. an ASP.NET page that opens when you click on "New" in a SharePoint list) throw the following exception when doing any kind of postback (no submit, just a "normal" postback e.g. to switch to the edit mode in an ASP.NET ListView) directly after the completion of the Page_Load method.

Exception: Microsoft.SharePoint.SPException

Message: The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.

Stacktrace: at Microsoft.SharePoint.Library.SPRequest.ValidateFormDigest(String bstrUrl, String bstrListName) at Microsoft.SharePoint.SPWeb.ValidateFormDigest() at Microsoft.SharePoint.Utilities.SPUtility.ValidateFormDigest() at Microsoft.SharePoint.WebControls.EntityEditor.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Inner Exception 1: Exception: System.Runtime.InteropServices.COMException

Message: The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again.

Stacktrace: at Microsoft.SharePoint.Library.SPRequestInternalClass.ValidateFormDigest(String bstrUrl, String bstrListName) at Microsoft.SharePoint.Library.SPRequest.ValidateFormDigest(String bstrUrl, String bstrListName)

Normally this exception indicates that you forgot to set SPWeb.AllowUnsafeUpdates = true somewhere in your code...but this was workng before installing the June CU, so I was wondering if anyone else has the same issue?

share|improve this question
    
I am having the same issue except that it only occurs when adding a new link the summary link web part. Has anyone found a solution? –  user4115 Jul 14 '11 at 17:03
    
@Jason Install August CU for both Windows SharePoint Services 3.0 (KB 2553022) and Office SharePoint Server 2007 (KB 2553020). For the error refer : support.microsoft.com/kb/2553019 –  user4794 Sep 14 '11 at 15:29
add comment

2 Answers

up vote 2 down vote accepted

Appears to be a problem related to a problem related to FormDigest. See if the pointers below help you understand your problem:

http://msdn.microsoft.com/en-us/library/ms472879.aspx

http://epham.wordpress.com/2007/01/22/how-to-fix-security-validation-errors-in-sharepoint-aspnet-page/

share|improve this answer
    
Thanks for the answer. I also found out that this is part of the solution, but now I've got the same issue as Christian below that a PeopleEditor causes an Exception when switching an ASP.NET ListView to edit mode... –  Tobias Jul 9 '11 at 11:09
add comment

I found out that not only the custom application pages have this problem. The dialog.master also have the same problem. We fixed this by adding the formdigest before the end of the tag.

share|improve this answer
add comment

protected by Community Sep 18 '11 at 1:55

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.