这个HTTP异常来自哪个服务器?

时间:2010-12-16 23:22:11

标签: .net web-services

方案是我收到了一个通过我的网络服务处理的文件。因为它有错误,我通过他的Web服务将文件发送回创建者,并注释了错误。我假设因为文件勉强低于4MB的限制,注释使它太大了。我不确定的是“超出最大请求长度”错误是来自我的服务器还是他的。我相信这是因为他的服务器试图读取请求,但我需要确认。

(为了使读取堆栈跟踪变得复杂,我发送的文件称为“响应”文件。)

2010-12-16 11:01:07,009 [724] ERROR MyResponseHandler [] - Unable to send response.  
Exception: System.Web.Services.Protocols.SoapException  
Message: System.Web.Services.Protocols.SoapException: There was an exception running the extensions specified in the config file. ---> System.Web.HttpException: Maximum request length exceeded.  
   at System.Web.HttpRequest.GetEntireRawContent()  
   at System.Web.HttpRequest.get_InputStream()  
   at System.Web.Services.Protocols.SoapServerProtocol.Initialize()  
   --- End of inner exception stack trace ---  
   at System.Web.Services.Protocols.SoapServerProtocol.Initialize()  
   at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)  
   at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)  
Source: System.Web.Services  
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)  
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)  
   at MyServiceProxy.UploadResponse(String callerIdentifier, String serviceName, String referenceIdentifier, String content, String contentFormat)  
   at MyResponseHandler.UploadResponse(MyRequest request)  
   at MyResponseHandler.TransmitAllResponses()  

1 个答案:

答案 0 :(得分:1)

它来自另一端 - >

 System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)  

另外,因为它在maximum **request** length exceeded中显示MyServiceProxy.UploadResponse,我认为是您上传的文件。

我认为他们有服务,需要提升MaxRequestLength