云速成美站,制作网页网站项目介绍,免费行情软件app大全,前端网站重构怎么做Web service 超过了最大请求长度错误解决 System.Web.Services.Protocols.SoapException: 运行配置文件中指定的扩展时出现异常。 --- System.Web.HttpException: 超过了最大请求长度。 在 System.Web.HttpRequest.GetEntireRawContent() 在 System.Web.HttpRequest.ge… Web service 超过了最大请求长度错误解决 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如下 httpRuntime maxRequestLength1048576 executionTimeout3600 / asp.net默认最大上传文件大小为4096 修改web.config文件可以改变这个默认值 configuration system.web httpRuntime maxRequestLength10000 ...... /system.web configuration --------------------------------------------------------------- 通常更常用的的方法是直接修改 c:\winnt\microsoft.net\dotnetframework\1.xxx.xx\config 目录下的 machine.config 文件 查找 httpruntime 在这一行将 maxRequestLength的值改为理想的值比如想要8M就输入8192. 这样你的任何一个 web 工程都可以上传最大8M的文件。 转载于:https://www.cnblogs.com/yexinw/archive/2011/12/29/2305617.html