Validation of viewstate MAC failed for wordpress

admin

Administrator
Staff member
We have a wordpress site on a linux share server (using cPanel). we want to create a login script to connect our site to another link that is using a microsoft server (aspx page). When we use the script and try to login we see the following error:

Server Error in '/NET' Application.

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.

<a href="http://go.microsoft.com/fwlink/?LinkID=314055" rel="nofollow">http://go.microsoft.com/fwlink/?LinkID=314055</a>

We did some checks and it seems this problem can be solved by editing the web.config file on a windows server but ours is linux. Can anyone suggest how to resolve the issue on the wordpress?

Here is how we used the code in wordpress:

Code:
&lt;form method="post" action="http://owners.mydomain.com/login.aspx" id="ddl00"&gt; 
&lt;div class="aspNetHidden"&gt; 
&lt;input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"      value="/fdfdfaerghjkkaaklgjlakrrvc34fdfWjAdfdfdfamNIzDfdf6adBjuDFWfzdfmdffY" /&gt; 
&lt;/div&gt; 

&lt;div class="aspNetHidden"&gt; 

&lt;input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/dfdfdasfasdfjglakfJKLFJDLKJR34252KKJLKJFD/fdfkadfeoawrfir/IeirIIURIR+KKJFKEjkdsfjerk" /&gt; 
&lt;/div&gt; 
&lt;table style="width:auto; margin:2em auto 0 auto;"&gt; 
&lt;tr&gt; 
&lt;td class="label"&gt; 
Username
&lt;/td&gt; 
&lt;td&gt; 
&lt;input name="username" type="text" id="username" tabindex="1" /&gt; 
&lt;/td&gt; 
&lt;/tr&gt; 
&lt;tr&gt; 
&lt;td class="label"&gt; 
Password 
&lt;/td&gt; 
&lt;td&gt; 
&lt;input name="password" type="password" id="password" tabindex="2" /&gt; 
&lt;/td&gt; 
&lt;/tr&gt; 
&lt;tr&gt; 
&lt;td colspan="2" class="button_row"&gt; 
&lt;input type="submit" name="ctl15" value="Login" tabindex="3" /&gt; 
&lt;/td&gt; 
&lt;/tr&gt; 
&lt;/table&gt; 
&lt;/form&gt;