私はWSE Webサービスを使用してC#でクライアント/サーバーアプリケーションを開発しています。ユーザーができることの1つは、Webサービス経由でバックアップするためにjpgイメージをサーバーに送信することです。最近、奇妙なエラーが発生しました。これはすべてのユーザーに起こるわけではありません。クライアント側では例外がClearHeadersが呼び出されたときにWSE 3.0がクラッシュする
System.Net.WebException Exception message: The operation has timed out
と次の警告がイベントビューアに発見されたサーバー上にある:
Exception information:
Exception type: HttpException
Exception message: Server cannot clear headers after HTTP headers have been sent.
Request information
Request URL: MyUrl/Service.asmx
Request path: /MyWebService/Service.asmx
User host address: -------
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 7
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Web.HttpResponse.ClearHeaders()
at System.Web.Services.Protocols.SoapServerProtocol.WriteException(Exception e, Stream outputStream)
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
at System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response)
誰もがこのエラーから来ることができるという考えを持っていますか?私はすでにweb.configの "maxRequestLength"を16Mbに上げようとしましたが、これは修正されません。あなたは選択肢がないので
よろしく /ダニエル・
その残念ながら遺産です。少なくとも今は変わることはありません... –