dropdownlist의 포스트 백에서이 예외가 발생합니다. 참고 : Dropdownlist는 값 유형 및 해당 usercontrol로 BigInt와 바인딩됩니다. 나는이 예외 얻고 난 드롭 다운리스트에서 값을 선택할 때 :오류 :이 페이지에 대한 상태 정보가 유효하지 않아 손상되었을 수 있습니다.
The state information is invalid for this page and might be corrupted.
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: The state information is invalid for this page and might be corrupted.
Source Error:
[No relevant source lines]
Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\074f73f4\bcce5747\App_Web_j32tj0nd.0.cs Line: 0
Stack Trace:
[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +9594283
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +119
System.Convert.ToInt32(String value, IFormatProvider provider) +48
System.Web.UI.Page.get_RequestViewStateString() +245
[ViewStateException: Invalid viewstate.
Client IP: ::1
Port: 2479
Referer: http://localhost:89//home.aspx?catid=8
Path: /home.aspx
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18) Gecko/20110614 AskTbPTV2/3.12.2.16749 Firefox/3.6.18 GTB7.1
ViewState: ]
[HttpException (0x80004005): The state information is invalid for this page and might be corrupted.]
System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +198
System.Web.UI.ViewStateException.ThrowViewStateError(Exception inner, String persistedState) +14
System.Web.UI.Page.get_RequestViewStateString() +567
System.Web.UI.HiddenFieldPageStatePersister.Load() +241
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +106
System.Web.UI.Page.LoadAllState() +43
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8431
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
System.Web.UI.Page.ProcessRequest() +78
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.home_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\074f73f4\bcce5747\App_Web_j32tj0nd.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
내가 구글 수행과 같은 것들을 많이 시도 :
<pages maxPageStateFieldLength="40"
및
ValidateRequest="false"
: webconfig에 을 하지만 해결책은 없습니다.
전문가에게 제게 해결책을 제공해주세요. 지난 몇 시간 동안이 문제에 직면하고 있습니다. 이전에는 문제가 없었습니다.
편집 : 참고 : 나는 지금 테스트를 통해 UC가 다른 페이지 "테스트 페이지"에서 정상적으로 작동하는 것으로 나타났습니다. 나는 그것이 어떤 것으로 상충되어야한다고 생각합니다 ... 제발 제안하십시오 ..
설명에 대한 내 대답을 참조하십시오. – VinayC