System.Web.Services.Protocols.SoapException: 在运行配置文件中指定的扩展时出现异常。 ---> System.Web.HttpException: 超过了最大请求长度。
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>
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>