PageAdmin网站内容管理系统(CMS)交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

后台操作老出现这个问题,老手们请帮我看看.. [复制链接]

1#
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:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:

[HttpException (0x80004005): Unable to validate data.]   System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +294   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +203[ViewStateException: Invalid viewstate.         Client IP: 116.76.11.41        Port: 27936        User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; TencentTraveler ; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; InfoPath.1; CIBA)        ViewState: /wEPDwUKMTg5MTk3MzYzNQ8WAh4GY29uc3RyBVxQcm92aWRlcj1NaWNyb3NvZnQuSmV0Lk9MRURCLjQuMDtEYXRhIFNvdXJjZT1kOlx3d3dyb290XHh4anpqbFx3d3dyb290XGRhdGFiYXNlXGRhdGEyMDA5Lm1kYhYCAgIPZBYCAgEPPCsACQEADxYEHghEYXRhS2V5cxYAHgtfIUl0ZW1Db3VudAIIZBYQAgEPZBYYAgMPEA8WAh4LXyFEYXRhQm91bmRnZGRkZAIHDxAPFgIfA2dkZGRkAgkPEA8WAh8DZ2RkZGQCDQ8PFgIeBFRleHQFATFkZAIPDw8WAh8EBQbpppbpobVkZAIRDw8WAh8EBQVpbmRleGRkAhMPDxYCHwQFATFkZAIVDw8WAh8EBQEwZGQCFw8PFgIeB0VuYWJsZWRoZGQCGQ8PFgQeC05hdmlnYXRlVXJsBT9sYW5tdV8yLmFzcHg/bGFubXUxaWQ9MSZsYW5tdTE9JWU5JWE2JTk2JWU5JWExJWI1JnRoZXR5cGU9aW5kZXgeB1Zpc2libGVnZGQCGw8PFgIfBgVIbGFubXVfMV90ZW1wbGF0ZS5hc3B4P2xhbm11MWlkPTEmbGFubXUxPSVlOSVhNiU5NiVlOSVhMSViNSZ0aGV0eXBlPWluZGV4ZGQCHQ8PFgIfBgUzbGFubXVfMV9iYW5uZXIuYXNweD8maWQ9MSZsYW5tdTE9JWU5JWE2JTk2JWU5JWExJWI1ZGQCAg9kFhgCAw8QDxYCHwNnZGRkZAIHDxAPFgIfA2dkZGRkAgkP...][HttpException (0x80004005): 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.]   System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +267   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +282   System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4   System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37   System.Web.UI.HiddenFieldPageStatePersister.Load() +198   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +83   System.Web.UI.Page.LoadAllState() +35   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7350   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213   System.Web.UI.Page.ProcessRequest() +86   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18   System.Web.UI.Page.ProcessRequest(HttpContext context) +49   ASP.master_lanmu_1_aspx.ProcessRequest(HttpContext context) +4   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64



Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

忽忽,,这是怎么回事啊?~ 好象看了别的贴,说是要.NET2.0,,,我这上面是2.0啊..为什么还是会出现这样的错误啊..
高手们快来帮帮忙呀.`.`

急等....
分享 转发
TOP
2#

不管是什么操作..

我更改栏目名称,,或者,,发布商品...

一点确定就出现这个....老是出现,,偶尔好一下,,,15次偶尔有1次修改成功...~

我很郁闷...
TOP
发新话题 回复该主题