Hi,
I was trying to add RadControls into my ASP.NET MVC Page but failed. Finally, I was found the reason is that when ViewPage applying any MasterPage. The page will always get "Validation of viewstate MAC failed" error after PostBack. See below:
---Server Error in '/' Application.
Exception Details: System.Web.HttpException: 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.
Source Error:
Source File: D:\Projects\TEST\SystemWebMvc\Mvc\ViewPage.cs Line: 115
---
I was tried to do any possible modification but still can't solve this problem.
Does anyone know how to overcome this situation?
Thanks.
I was trying to add RadControls into my ASP.NET MVC Page but failed. Finally, I was found the reason is that when ViewPage applying any MasterPage. The page will always get "Validation of viewstate MAC failed" error after PostBack. See below:
---
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.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Web.HttpException: 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.
Source Error:
|
Source File: D:\Projects\TEST\SystemWebMvc\Mvc\ViewPage.cs Line: 115
---
I was tried to do any possible modification but still can't solve this problem.
Does anyone know how to overcome this situation?
Thanks.