at System.Web.HttpRequest.GetEntireRawContent()
at System.Web.HttpRequest.get_InputStream()
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
--- 内部异常堆栈跟踪的结尾 ---
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
是因为传入的参数大于系统默认配置的值。
修改配置,该方法可能有用,不敢确定,正在调试中...
asp.net web service默认的请求长度是4M,可以在web.config中重新设置,如下:
<configuration>
<system.web>
<httpRuntime maxRequestLength= "1048576 " executionTimeout= "3600 " />
</system.web>
</configuration>
134



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



