나는 우리의 웹 앱 단계의 특정 설정에 따라 다소 표준 이벤트 유효성 검사 오류를 얻고있다 없습니다 :페이지 이벤트 검증 실패가 하나의 환경에서 발생하지만, 다른
Application_Error intercepted exception: Exception of type 'System.Web.HttpUnhandledException' was thrown.
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentException: Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.
진짜 headscratcher는이 때문이다 테스트 환경에서 발생하지만 재 작성을 시도 할 때 내 개발 환경에서는 발생하지 않습니다. 필자는 web.config를 변경하여 변경되었을 수있는 것들을 살펴 봤지만 점프 아웃은 보이지 않습니다. 이 코드는 환경간에 완전히 동일합니다. TeamCity에서 그 점을 분명히했습니다. 따라서 환경 문제를 강력하게 의심하고 있지만 이벤트 확인과 같은 것으로 시작해야 할 부분은 거의 없습니다. 이는 일반적으로 코드로 처리됩니다.
경로에 대해 조사 할 사람이 있습니까? 내가하는 일의 세부 사항 중 일부는 드문 드문 드문 현상이지만 개발 환경에서는 모든 것이 100 % 정상적으로 작동하고 전혀 문제가 없기 때문에 어떤 것이 관련성이 있고 어떤 것이 좋을지 모르겠다. 티. 더 자세한 정보가 필요하면 부탁드립니다. 제공 해줘서 기쁩니다.
웹 응용 프로그램이 서버에서 실행중인 동일한 .NET 버전을 대상으로합니까? – James
@James : 예. 그것은 제가 꽤 빨리 확인한 것입니다. 잘 부탁드립니다. – tmesser