LOGIN Error = Validation of viewstate MAC failed.

Last post 05-13-2008 7:08 PM by LarryTrema. 4 replies.

Sort Posts:

  • LOGIN Error = Validation of viewstate MAC failed.

    05-13-2008, 1:11 PM
    • Loading...
    • LarryTrema
    • Joined on 05-13-2008, 1:05 PM
    • Posts 3

    Hosting on GoDaddy. Got it installed. Created my account. Set Role = Admin. Tried to login using my new username/paswd. Always get this message. Saw many Google posts elsewhere but no solution. Using GoDaddy windows acct with SQL.

     Site is musicvisions.com. I'm just starting on it.

    Help greatly appreciated.

     Thanks

  • Re: LOGIN Error = Validation of viewstate MAC failed.

    05-13-2008, 1:20 PM
    • Loading...
    • Jeev
    • Joined on 11-24-2005, 7:49 AM
    • Posts 3,067

    If your app is in a web farm which I guess s the case, make sure you use the same machine key across the different servers. You can do this by setting the machine key in the web.config 

    Jeev
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    If you get the answer to your question, please mark it as the answer.
  • Re: LOGIN Error = Validation of viewstate MAC failed.

    05-13-2008, 1:38 PM
    • Loading...
    • LarryTrema
    • Joined on 05-13-2008, 1:05 PM
    • Posts 3

    I hosting on GoDaddy.com, so have no control over the machine.

    Also, in web.config I saw no machine key.

     Any other ideas?

     I expect anyone hosting on GoDaddy would have this problem.

    Thanks much

  • Re: LOGIN Error = Validation of viewstate MAC failed.

    05-13-2008, 1:43 PM
    • Loading...
    • Jeev
    • Joined on 11-24-2005, 7:49 AM
    • Posts 3,067

    Absence of the machine key is usually the reason for this kind of problem 

    Since web.config is a part of your application, you should be able to put in the machine key

    see this on how to do so

    http://msdn.microsoft.com/en-us/library/ms998288.aspx

    http://www.cerkit.com/cerkitBlog/Online+Tool+For+Generating+MachineKey+Elements.aspx 

    Jeev
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    If you get the answer to your question, please mark it as the answer.
  • Re: LOGIN Error = Validation of viewstate MAC failed.

    05-13-2008, 7:08 PM
    Answer
    • Loading...
    • LarryTrema
    • Joined on 05-13-2008, 1:05 PM
    • Posts 3

    That did. Thanks much. You have no idea how important this was to me.
     
    Very much appreciate it.Big Smile
     
    My web.config looks like this now, and it my GoDaddy-hosted Personal Web Site now lets me login.
     
    </connectionStrings>
    <system.web>
    <machineKey validationKey="C8E8DCAFFD27728DA7B5B243D7AAA819235756799D8BFAECD0E998754B164CB25062C4AC4CB7B314115D1E3B053962EE941EC3892404361A524C0D005E6B2A12"
    decryptionKey
    ="7FA53D3B00F3E032" validation="SHA1" />

    <pages styleSheetTheme="White">

Page 1 of 1 (5 items)
Microsoft Communities
Page view counter