所以我有一台计算机上此错误(不上2人):验证表格后,未能提交
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, [...]
据happenning一个开发的计算机上,计算机,以便everithing运行时,断言“如果这个应用程序是由Web场或群集承载”是FALSE
按照MSDN博客我要删除我的表单的action属性(在ask_full_report.aspx
)
<form id="form1" runat="server" method="post" action="full_report.aspx">
但我不想删除动作属性,我想将我的表单提交到full_report.aspx
。
这里是我的web.config(我删除的appSettings下的某些键)
<configuration>
<appSettings>
<add key="URL_BASE" value=""/>
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
对于this Answer:我不使用ViewStateUserKey
你有什么事请的任何想法?
注意:我不认为这是
- Setting ViewStateUserKey gives me a "Validation of viewstate MAC failed" error
- Validation of viewstate MAC failed [复制]
额外的ressource重复:MSDN - HttpException Due to Invalid Viewstate After Installing .NET Framework 3.5 SP1
Ë DIT:今天,没有采取任何行动,我再也没有这个错误了。我已经打开这篇文章,因为这个错误没有很好的记录。如果有人有解决方案,请发表一个答案。
生成自己的密钥任何想法为什么其他电脑不需要它? – Apolo
今天,没有采取任何行动,我再也没有这个错误了。 (......) – Apolo