Wednesday, August 22, 2012

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

This error occurred to me when I introduce ElevatedPrivilages block to the project.

I refreshed the page and still I got the error. Then I found that I missed the
web.AllowUnsafeUpdates = true;
in the code.

No comments: