错误:验证视图状态MAC失败。 [英] Error : Validation of viewstate MAC failed.

查看:62
本文介绍了错误:验证视图状态MAC失败。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好先生我在子域名主办一个网站



demoweb.asgraphicsnext.com



当我在我的网站出现错误10分钟后打开这个网站







'/'应用程序中的服务器错误。





验证视图状态MAC失败。如果此应用程序由Web场或群集托管,请确保< machinekey> configuration指定相同的validationKey和验证算法。 AutoGenerate不能在群集中使用。



请给我一些解决方法如何修复此错误。

托管公司:microhost.com

hello sir i host a website in subdomain

demoweb.asgraphicsnext.com

when i open this website after 10 minute coming error in my website



Server Error in '/' Application.


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.

please give me some solution how to fix this error.
hosting company : microhost.com

推荐答案





您可以使用各种在线工具生成机器密钥,并将该代码放在<的System.Web> web.config的元素



例如



Hi,

you can generate machine key using various online tools and place that code inside <system.web> element of web.config

for example

<system.web>
<machineKey 
  validationKey="9D5525FFA8AB85DEB5CB3C002E2E07B4E5CB7A420CF795C3B53392FB1EC0DFC3D589A903634AD5D02F9A61990703D05509D17AA568EB3405C9373C11CD3097CC"
  decryptionKey="A7CB97DA5CA1F2DDD782476D821EDC3BE87C6ABA2F23E728348B06E13DD77694"
  validation="SHA1" decryption="AES"/>
</system.web>


generate a <machineKey> element and update in web config file and your issue will be solved




You can generate machine keys from the IIS manager




The value is stored locally in the web.config of that application something like

<?xml version="1.0" encoding="UTF-8"?> 
<configuration> 
    <system.web> 
        <machineKey decryptionKey="F6722806843145965513817CEBDECBB1F94808E4A6C0B2F2,IsolateApps" validationKey="C551753B0325187D1759B4FB055B44F7C5077B016C02AF674E8DE69351B69FEFD045A267308AA2DAB81B69919402D7886A6E986473EEEC9556A9003357F5ED45,IsolateApps" /> 
    </system.web> 
</configuration>





请浏览本网站 https://blogs.msdn.microsoft.com/vijaysk/2009/05/13/ iis-7-tip-10-you-can-generate-machine-keys-from-the-iis-manager / [ ^ ]


您的应用程序池在10分钟后得到回收,这就是应用程序抛出错误的原因

您需要创建一个新的应用程序池并分配给您的Web应用程序,检查以下链接了解更多详情

https://support.microsoft.com/en- us / kb / 2915218 [ ^ ]
Your application pool get recycle after 10 minutes and that's why application throws error
you need to create a new application pool and assign to your web application, check out below link for more detail
https://support.microsoft.com/en-us/kb/2915218[^]


这篇关于错误:验证视图状态MAC失败。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆