I kept getting the following error: "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. Auto Generate cannot be used in a cluster."
The problem was my login system worked fine on my local machine, but when I FTPed my application to my remote server and then launched it, the user names and roles I created locally would not authenticate. Login would fail for these users. If I then created new users with my application on my remote server they would authenticate properly. In short, any time I moved my application to a new directory the users and roles created when the application resided in previous directories failed.
I found a solution to the problem that worked for me. The solution is to manually add the applicationName attribute to the <providers> node of your web.config file and give it a value, such as "/". I wrote a short article about the process I used to fix the problem. Hope it helps:
Validation of Viewstate MAC Failed Article | ITegrity Web Development Education
The problem was my login system worked fine on my local machine, but when I FTPed my application to my remote server and then launched it, the user names and roles I created locally would not authenticate. Login would fail for these users. If I then created new users with my application on my remote server they would authenticate properly. In short, any time I moved my application to a new directory the users and roles created when the application resided in previous directories failed.
I found a solution to the problem that worked for me. The solution is to manually add the applicationName attribute to the <providers> node of your web.config file and give it a value, such as "/". I wrote a short article about the process I used to fix the problem. Hope it helps:
Validation of Viewstate MAC Failed Article | ITegrity Web Development Education