Web アプリの特定の一連の手順で、かなり標準的なイベント検証エラーが発生します。
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.
本当の頭を悩ませているのは、これがテスト環境で発生していることですが、再作成しようとすると私の開発環境では発生しません。変更された可能性のあるものについて web.config を熟読しましたが、飛び出すものは何もありません。コードは環境間で完全に同じです - TeamCity はそれを確認しました。したがって、環境問題を強く疑っていますが、イベントの検証などをどこから始めればよいかわかりません。これは通常、コードで処理されます。
これについて調査するためのパスについてのアイデアを持っている人はいますか? 私が行っていることの詳細の一部がまばらであることは認識していますが、それは開発環境ですべてが 100% 正常に機能し、まったく問題がないためです。 t。詳細が必要な場合は、お問い合わせください。喜んで提供させていただきます。