Validation of viewstate MAC failed [duplicate]

纵然是瞬间 提交于 2019-11-29 06:34:57
Druid

I asked a similar question a while ago. Did you see this post? Another thing that helped me with this error was setting a machineKey. See this Microsoft Page about the problem and setting a Machine Key.

I started having this problem today.

Long story short - I'd copied some of the form code from a similar page and forgotten to change the form action:

<form id="Form1" action="search.aspx" method="post" runat="server">

</form>

The form on results.aspx should have been:

<form id="Form1" action="results.aspx" method="post" runat="server">

</form>

I would recommend anyone else check this and also any inherits values before delving into config and other settings.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!