Web service的默认的请求长度是4M
当内容超过了4M会报错
System.Web.Services.Protocols.SoapException:
运行配置文件中指定的扩展时出现异常。 ---> System.Web.HttpException: 超过了最大请求长度。 在
System.Web.HttpRequest.GetEntireRawContent() 在
System.Web.HttpRequest.get_InputStream() 在
System.Web.Services.Protocols.SoapServerProtocol.Initialize() ---
内部异常堆栈跟踪的结尾 --- |
可以在Web.config修改最大的请求长度,如修改成50M
<system.web> <httpRuntime
maxRequestLength= "51200" executionTimeout="3600" /> </system.web> |
本文介绍了Webservice默认请求长度为4M,超过该长度时如何通过修改Web.config文件来调整最大请求长度。
1257

被折叠的 条评论
为什么被折叠?



