2011-07-04 4 views
0

누군가이 오류로 나를 도울 수 있습니까? 일반적으로 응용 프로그램이 유휴 상태이거나 세션이 만료 될 때 발생합니다. viewstate MAC의 유효성 검사가 실패했습니다.

그냥있어의 EnableViewState = "false"로 추가 아래의 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

예 ...! 개별 페이지에 대해 페이지를 추가하려면 .aspx 페이지의 enableviewstate = "false" – lock

+0

이것은 세션이 20 분 후에 만료되기 때문입니다. 페이지를 20 분 남겨두면이 문제가 발생합니다. – lock

관련 문제