I have a home page with a search box and a button on it.
I click the search button and i go to a results page.
the results page also has a search button and when i click it i get the error Validation of viewstate MAC failed
<% using( Html.BeginForm("Result", "Search" )){ %>
<%= Html.TextBox("SearchText", Model.SearchText)%>
<input value="" type="submit"/>
Both pages contain the above piece of code.
If i use the same master page for both pages i don't get the error. if they use different master pages i get the error.
i have turned off enableEventValidation and viewStateEncryptionMode and i still get the error.
UPDATE
When I press the button in both views, the views ActionResult is called, data is collected but when i say return View(myFormViewModel) I get the error.
So all's good as far as the controller is concerned I think.