This topic is locked

Viewstate MAC error

7/19/2006 10:46:50 PM
ASPRunner.NET General questions
B
Bestech author

[HttpException (0×80004005): Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.]
This error message seems to be pretty thoroughly documented for asp.net, but how do I fix it in ASPRunner.Net?

B
Bestech author 7/20/2006

OK, well....after struggling with this problem for hours! I finally figured it out. So I'm posting the answer in case anyone else runs into this.
I put this code in my web.config that I got from the site...
<authentication mode="Forms">

<forms name="ASP_XML_Form" loginUrl="login.aspx" protection="All"

timeout="30" path="/" requireSSL="false" slidingExpiration="true" />

</authentication>
By default it uses
<authentication mode="Windows" />
But I'm using shared hosting. Sooooooooo

If you actually read the article timeout="30" is 30 seconds. So when I'd login I couldn't go anywhere else after 30 seconds.
I just removed the timeout setting.
Problem fixed.