By default, ASP.NET will attempt to validate the viewstate. If validation fails, it will throw this exception. Reasons that it might not validate include recompiling the site and then refreshing a form in your browser, or some sort of server farm/cluster (but if you're using localhost, I'd lean towards the former).
You can turn this off if it's really hampering you, but then anyone can monkey with your viewstate. This isn't a big deal so long as you don't trust user input to begin with (and you shouldn't). In your web.config:
<pages enableViewStateMac="false" />