asp.net – 增加IIS7 / Win7 Pro上的最大上传文件大小
发布时间:2020-12-30 19:03:03 所属栏目:asp.Net 来源:互联网
导读:我为客户端设置了一个服务器(我通常不会这样做),而且我遇到上传大型文件(11MB)的问题.服务器正在运行 Windows 7 Professional,添加IIS. 在web.config我已经尝试设置 system.web httpRuntime maxRequestLength=65536 / !-- 64MB --/system.web …这不行. 我已
我为客户端设置了一个服务器(我通常不会这样做),而且我遇到上传大型文件(11MB)的问题.服务器正在运行 Windows 7 Professional,添加IIS. 在web.config我已经尝试设置 <system.web> <httpRuntime maxRequestLength="65536" /> <!-- 64MB --> </system.web> …这不行. 我已经设置好了 <system.webSecurity> <security> <requestFiltering> <requestLimits maxAllowedContentLength="68157440" /> </requestFiltering> </security> </system.webSecurity> …也不行. 我在这里缺少什么?正如我所说,我通常不设置服务器,所以我可能会丢失一些明显的东西,没有任何建议会被嘲笑! 提前致谢. 解决方法将system.webSecurity更改为system.webServer.<system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="52428800"/> </requestFiltering> </security> </system.webServer> 如果这不起作用(由于权限分支),请使用提升的命令提示符下的appcmd进行设置:
更多信息:http://bloggingabout.net/blogs/ramon/archive/2009/03/13/how-to-enable-large-file-uploads-in-iis7.aspx (编辑:鄂州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net – 无法加载类型’site._Default[已关闭]
- asp.net – 访问.NET中的Web服务中的查询字符串(GET请求数组
- 一些.net中应该知道的问题
- asp.net-mvc – 在MVC ActionLink中使用Knockout绑定
- asp.net-mvc – 尝试创建类型为’TypeNewsController’的控
- 什么是ASP.NET WebForms相当于ASP.NET MVC的ViewData
- asp.net-mvc – ControllerActionInvoker
- asp.net-mvc – 通过Gitignore递归地包含Nuget DLL
- asp.net-mvc – 我如何可以渲染局部视图在asp.net mvc 3
- ASP.NET缓存管理的几种方法
推荐文章
站长推荐
- asp.net-mvc – 在EditorFor for child对象中使用
- asp.net-mvc-3 – MVC3,多文件上传,模型绑定
- asp.net-mvc – WebService还是一个简单的MVC控制
- asp.net – 将web应用程序的项目编译成dll
- asp.net-mvc – 在IIS 5.1上部署ASP.NET MVC(Win
- asp.net – VS插件:查看标记.存在这样的事情吗?
- asp.net-mvc – 什么时候使用ViewData而不是View
- asp.net – Html.BeginForm()类型的扩展名
- asp.net – 哪个控件导致回发?
- 如何使用Fluent Nhibernate中的Automapping进行O
热点阅读