2011-07-04 6 views
0

誰かがこのエラーで私を助けてくれますか?これは通常、アプリケーションがアイドル状態のとき、またはセッションが期限切れになったときに発生します。ただそれだenableviewstate = "false" に追加の下ビューステートMACの検証に失敗しました

は、あなたのweb.configファイルで

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) +106 
    System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) +14 
    System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +242 
    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() +207 
    System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +105 
    System.Web.UI.Page.LoadAllState() +43 
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785 
    System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242 
    System.Web.UI.Page.ProcessRequest() +80 
    System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21 
    System.Web.UI.Page.ProcessRequest(HttpContext context) +49 
    ASP.accounting_obracun_search_aspx.ProcessRequest(HttpContext context) +4 
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181 
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75 

答えて

2

ありがとうございます。あなたはこのエラーを再び見ることはありません。

+0

各.aspxページのコントロールのviewstateに影響しますか? – mko

+0

はい...!個々のページに追加する場合は、ページを追加します。enableviewstate = "false" .aspxページ – lock

+0

これは、セッションが20分後に期限切れになっているためです。ページを20分放置すると、この問題が発生します。 – lock

関連する問題