博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Web service 超过了最大请求长度 错误解决

Posted on 2007-03-15 19:00  myzerg  阅读(2953)  评论(3编辑  收藏  举报
错误提示如下
System.Web.Services.Protocols.SoapException: 运行配置文件中指定的扩展时出现异常。 ---> System.Web.HttpException: 超过了最大请求长度。
   在 System.Web.HttpRequest.GetEntireRawContent()
   在 System.Web.HttpRequest.get_InputStream()
   在 System.Web.Services.Protocols.SoapServerProtocol.Initialize()
   --- 内部异常堆栈跟踪的结尾 ---
突然出来的,原来web service 运行的好好的
解决方法
修改 web.config如下
<httpRuntime maxRequestLength="1048576" executionTimeout="3600" />
原来好像是 4096 然后就好了
特此留念