Error Message:The security validation for this page is invalid. Click Back in yourWeb browser, refresh the page, and try your operation again.Facing this problem while uploading the file using SPFile in SharePoint.
This happens while the browser is idle for some time.Just do a refresh and restart the upload process it shud work.If not, close the IE session and openup a new one and upload.
The error you found should not have occured becauseeven when u are uploading the browser is not idle.Ne ways just check if it i actually uploading the fileor not.
Chk this : http://support.microsoft.com/?kbid=828811&FR=1But ideally, it SHOULD upload after a new session.
Add a form digest control to ur page. This should solve the problem