ASP.NETでエラーコード 0x80070001が発生した場合はSNP機能を見直す

ASP.NETでエラーコードは0x80070001が発生したら、SNP機能の設定を見直すといいみたい。

具体的には下記の様なエラーが発生したのです。

[HttpCode:500]System.Web.HttpException (0x80004005): リモート ホストと通信中にエラーが発生しました。エラー コードは 0x80070001 です。 ---> System.Runtime.InteropServices.COMException (0x80070001): ファンクションが間違っています。 (HRESULT からの例外: 0x80070001)
場所 System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect)
場所 System.Web.Hosting.IIS7WorkerRequest.ReadEntityCoreSync(Byte[] buffer, Int32 offset, Int32 size)
場所 System.Web.HttpRequest.GetEntireRawContent()
場所 System.Web.HttpRequest.FillInFormCollection()
場所 System.Web.HttpRequest.get_Form()
場所 xxxxxxxxxxxxxxxxxxxxx 場所 xxxxxxxxxxxxxxxx.cs:行 xx
場所 xxxxxxxxxxxxxxxxxxxxx 場所 xxxxxxxxxxxxxxxx.cs:行 xx
場所 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

場所 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

見た感じ、プログラムのエラーとは思えないのですが、ググってみたらやっぱりそんな感じでした。

参照 → An error occurred while communicating with the remote host. The error code is 0x80070001
TCP Task Offloading options of the NIC driver should be set at the physicla NIC level (the nic of the host that the External virtual network is using).

解決方法としては、TCP offload機能(≒SNP機能)を無効にすれ、とのことです。

負荷が高くなって、SNP機能の副作用でネットワーク接続が不安定になったから「リモートホストとの通信中にエラー」が発生したんだろうな~。

コメントを残す