I have written some code in my feature receivers on feature activation and deactivation for my SharePoint 2010 site.
Basically some contents are added on feature activation and same are deleted when the feature is de-activated.
I install my solution using a PowerShell script. It runs OK for installation but when I run uninstall script I get an error message while de activating the features "The security validation for this page is invalid. Click back button of your browser, refresh the page and try again your operation". Though the un-installation does its job. Please help me to find out the cause of this error.