IIS 7 httpruntime maxRequestLength限制为2097151 [英] IIS 7 httpruntime maxRequestLength limit of 2097151

查看:2571
本文介绍了IIS 7 httpruntime maxRequestLength限制为2097151的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过sharepoint客户端对象模型将文件上传到运行在IIS 7上的Sharepoint 2010服务器。我发现的问题是文件大小限制非常好...限制。我已经阅读了很多关于这个主题的帖子,似乎我遇到了一个问题,与我发现之前发现的问题分开。经过一些实验和尝试不同的方法我终于发现,我碰到的限制现在是由于以下配置设置在我的web.config:

I am attempting to upload files to my Sharepoint 2010 server running on IIS 7 via the sharepoint client object model. The issue I have found is the file size limit is very well...limiting. I have read quite a few posts on the subject and it seems as though I'm running into an issue that is separate from those that I have found posted previously. After some experimentation and trying different methods I have finally found that the limit I am hitting right now is due to the following config setting in my web.config:

<system.web>
 <httpRuntime maxRequestLength="2097151" />
</system.web>

最初设置为51000左右。我试图把我在其他地方列出的2 gig值在理论最大值为该值,但当这样做的网站将不会加载,返回的错误状态,此设置的有效范围是0-2097151。我想知道是否有其他地方,这个最大允许范围是设置?看起来很奇怪,它是如此之低,这基本上限制任何文件上传我可以提供只有2兆,小于Sharepoint配置上传限制50兆。

Originally it was set at 51000 or so. I tried to put the 2 gig value that I have seen listed elsewhere at the theoretical maximum in for the value but when this is done the site won't load and the returned error states that the valid range for this setting is 0-2097151. I am wondering if there is somewhere else that this maximum allowed range is being set? It seems strange that it is so low, this basically limits any file upload I could provide to being only 2 megs which is smaller than the Sharepoint configurations upload limit of 50 megs.

推荐答案

maxRequestLength 以千字节为单位,因此您已将其设置为2GB(2097151/1024/1024 = 2)。

The maxRequestLength is measured in kilobytes, so you already set it to be 2GB (2097151 / 1024 / 1024 = 2).

这篇关于IIS 7 httpruntime maxRequestLength限制为2097151的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆