かなり複雑なASP.netページでランダムエラーをデバッグしようとすると、開始したADO.net MS-SQLのかなりの部分がありますトラブルシューティング。しかし、まだ私はそれを絞り込むことができませんでした。面白いのは、(同じDB接続に対して)VSでローカルにコードをデバッグするときにエラーが発生しない場合です。しかし、コードがIISに対して実行されると、次のエラーがスローされます。誰もが似たようなことに遭遇しましたか?ASPエラー:オブジェクトの現在の状態のため、操作が無効です
ソースエラー:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
スタックトレース:
[InvalidOperationException: Operation is not valid due to the current state of the object.]
System.Web.HttpValueCollection.FillFromEncodedBytes(Byte[] bytes, Encoding encoding) +11368719
System.Web.HttpRequest.FillInFormCollection() +329
[HttpException (0x80004005): The URL-encoded form data is not valid.]
System.Web.HttpRequest.FillInFormCollection() +11482818
System.Web.HttpRequest.get_Form() +157
System.Web.HttpRequest.get_HasForm() +11483620
System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +141
System.Web.UI.Page.DeterminePostBackMode() +100
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +259
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
私はそこまで戻ってくるまで確かに分かりませんが、ページが非常に複雑で、これが問題であると思っています。これはパッディング・オラクル攻撃のパッチですか? –
@bumble_bee_tuna、いいえ、これはパッディングのオラクルではありません。それは新しいものです。 –
うわー、ASPのセキュリティのための悪い年、笑。私に頭痛を引き起こす可能性のある洞察に感謝します。すべての兆候がそれを指しているので、私は答えとして印を付けるつもりです。コードは数ヶ月間うまく機能し、サーバーはちょうどパッチを当て、非常に大きな複雑なページ。もう一度おかげでダーリン –