Click here to Skip to main content
16,004,584 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 8-Dec-15 23:03pm
v3
Comments

Hi,

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

for example

C#
<system.web>
<machineKey 
  validationKey="9D5525FFA8AB85DEB5CB3C002E2E07B4E5CB7A420CF795C3B53392FB1EC0DFC3D589A903634AD5D02F9A61990703D05509D17AA568EB3405C9373C11CD3097CC"
  decryptionKey="A7CB97DA5CA1F2DDD782476D821EDC3BE87C6ABA2F23E728348B06E13DD77694"
  validation="SHA1" decryption="AES"/>
</system.web>
 
Share this answer
 
v3
C#
generate a <machineKey> element and update in web config file and your issue will be solved

C#
You can generate machine keys from the IIS manager

XML
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>


please go through this website https://blogs.msdn.microsoft.com/vijaysk/2009/05/13/iis-7-tip-10-you-can-generate-machine-keys-from-the-iis-manager/[^]
 
Share this answer
 
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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900