title: jMeter Login issue with MVC and Anti Forgery
body: <p>I am trying to load test my Website using jMeter. 
  I am getting issue with my login page. I have passed the __RequestVerificationToken value in login page by capturing it via RegEx as shown:</p>
  
  <pre><code>Field to check: Body.
  Reference Name: token.
  Regular Expression: &lt;input name="__RequestVerificationToken" type="hidden" value="(.*)" /&gt;.
  Template: $1$
  </code></pre>
  
  <p>I am still getting the same error with response as :</p>
  
  <pre><code>&lt;title&gt;The anti-forgery token could not be decrypted. If this application is hosted by a Web Farm or cluster, ensure that all machines are running the same version of ASP.NET Web Pages and that the &amp;lt;machineKey&amp;gt; configuration specifies explicit encryption and validation keys. AutoGenerate cannot be used in a cluster.&lt;/title&gt;
  &lt;b&gt; Exception Details: &lt;/b&gt;System.Web.Mvc.HttpAntiForgeryException: The anti-forgery token could not be decrypted. If this application is hosted by a Web Farm or cluster, ensure that all machines are running the same version of ASP.NET Web Pages and that the &amp;lt;machineKey&amp;gt; configuration specifies explicit encryption and validation keys. AutoGenerate cannot be used in a cluster.&lt;br&gt;&lt;br&gt;
  </code></pre>
  
  <p>More details from the Request tab in View tree results:</p>
  
  <pre><code>POST data:
  __RequestVerificationToken=%24%7Btoken%7D&amp;UserModel.UserName=pm&amp;UserModel.Password=Abc1234D
  
  Cookie Data:
  ASP.NET_SessionId=l0cvy41ons0xv1t3e5glx2j5; __RequestVerificationToken_L0NyZWlzc1dlYg2=elGNi5_GoW2DYFM-obeXg9DHsihM26jv8HgT4IEpjngwc1gfJ4lRTboi3t-UV4L9485dM_9bdAVfRZKauTIXAZoKvNt2Q9R0yW19ZQIO17A1
  
  Request Headers:
  Connection: keep-alive
  Referer: http://172.52.50.137/CreissWeb/
  Accept-Language: en-US,en;q=0.5
  Content-Type: application/x-www-form-urlencoded
  Accept-Encoding: gzip, deflate
  User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0
  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  Content-Length: 91
  Host: 172.52.50.137
  </code></pre>
  
  <p>HTTP Request:</p>
  
  <pre><code>__RequestVerificationToken  ${token}    false   true
  UserModel.UserName  pm  false   true
  UserModel.Password  Abc1234D    false   true
  </code></pre>
  
  <p>Any help will be highly appreciated. !!</p>