Team System Developer Center > Visual Studio Team System Forums > Visual Studio Team System - Testing > Webtest fails with the "231|error|500|Validation of viewstate MAC failed" error
Ask a questionAsk a question
 

AnswerWebtest fails with the "231|error|500|Validation of viewstate MAC failed" error

  • Thursday, November 05, 2009 11:20 AMCharvaka Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi

    When i Record a webtest and play back then my web test fails with the following error in the response

     "231|error|500|Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.|"

    When i check in the Details tab the error message is "No hidden fields wer found in the Response"

    Can some one help me with a fix?

    Note:  Working on VS2008 with sp1  installed.

    Thanks

    -Charu

Answers

  • Friday, November 06, 2009 9:24 AMEdwer FangMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hello Charu,

    Based on the error message, it seems the web test is not able to find the viewstate and we have to extract it manually with extraction rule. You may refer to this post to see if you can have it resolved.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.

All Replies

  • Friday, November 06, 2009 9:24 AMEdwer FangMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hello Charu,

    Based on the error message, it seems the web test is not able to find the viewstate and we have to extract it manually with extraction rule. You may refer to this post to see if you can have it resolved.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.