SP2010客户端对象模型3 MB的限制 - 更新maxReceivedMessageSize犯规得到应用 [英] SP2010 Client Object Model 3 MB limit - updating maxReceivedMessageSize doesnt get applied

查看:193
本文介绍了SP2010客户端对象模型3 MB的限制 - 更新maxReceivedMessageSize犯规得到应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的客户端对象模型当我试着上传文件比使用客户端OM 3 MB具有更大的Sharepoint 2010进行交互,它给了一个错误错误的请求。微软建议来解决这个问题。我想,并更新了maxReceivedMessageSize财产。之后,我重新启动系统,但犯规得到应用到运行SharePoint服务器,它工作正常。

I am using Client Object Model to interact with Sharepoint 2010. When I tried to upload documents greater than 3 MB using Client OM, it gave an error Bad Request. Microsoft suggests this to fix the problem. I tried that and updated the maxReceivedMessageSize property. It works fine after I restart the system, but doesnt get applied to a running sharepoint server.

我认为作为设置可能已被保存在内存中,因此需要一个应用复位,但我cudnt弄清复位。我曾尝试在CH375复位不同Sharepoint服务。我曾尝试在IIS CH375复位的Sharepoint网站。没有什么帮助。

I assume that as the setting might have been kept in memory, so needs an application reset, but I cudnt figure out what to reset. I have tried reseting different Sharepoint services. I have tried reseting Sharepoint website in IIS. Nothing helps.

另外,如果我订的10 MB例如限制,我可以上传文件在7.5 MB。我认为这是因为额外的元数据(内容类型的属性等)。这是正确的行为,或者我需要改变别的东西为好。

Also, if I set a limit of 10 MB for example, I am able to upload documents around 7.5 MB. I think that is because of additional metadata (content-type properties etc). Is this correct behaviour or I need to change something else as well.

希望得到任何帮助。

问候

推荐答案

我发现的此TechNet论坛进入这帮助我解决这个问题:

I have found this TechNet Forum entry which helped me solve this problem:

告诉的SharePoint按照以下步骤来增加其文件大小。结果
O为SharePoint站点管理员,访问SharePoint 2010 Management Shell中通过搜索
1.在开始菜单上,单击所有程序。结果
2.单击Microsoft SharePoint 2010产品。结果
3.单击SharePoint 2010 Management Shell中。结果
○然后运行下面的命令。

Tell SharePoint to increase its file size by following the steps below.
Ø As the SharePoint Site Administrator, access the SharePoint 2010 Management Shell by
1. On the Start menu, click All Programs.
2. Click Microsoft SharePoint 2010 Products.
3. Click SharePoint 2010 Management Shell.
Ø Then run the commands below.

GET-PSSnapin - 注册结果
添加-PSSnapin微软.SharePoint.Powershell 结果
$ WS = [Microsoft.SharePoint.Administration.SPWebService] :: contentService的结果
$ ws.ClientRequestServiceSettings.MaxReceivedMessageSize = 2147483647 结果
$ ws.Update()

告诉Asp.Net按照以下步骤来增加其文件大小。结果
○编辑所有的web.config涉及到添加的元素文件';的httpRuntime><'。结果
当你完成后,你除了应类似于下面的示例结果
Ø2147483647字节等于1.99 GB。结果
<&的System.Web GT; 结果
<的httpRuntime useFullyQualifiedRedirectUrl =真的maxRequestLength = 2147483647requestLengthDiskThreshold =2147483647executionTimeout =18000/>
< /system.web>

告诉IIS 7.0和高达按照下面的步骤来增加其文件大小。结果
编辑所涉及的所有的web.config文件添加元素'< requestLimits>'。结果
当你完成后,你除了应类似于下面的示例结果
< system.webServer> 结果
<模块runAllManagedModulesForAllRequests =真/> 结果
<安全> 结果
<的requestFiltering> 结果
< requestLimits maxAllowedContentLength =2147483647/> 结果
< /的requestFiltering> 结果
< /安全> 结果
< /system.webServer>

Tell IIS 7.0 and up to increase its file size by following the steps below.
Edit all web.config files involved to add the element '<requestLimits>'.
When you are done, your addition should look like the example below.
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483647" />
</requestFiltering>
</security>
</system.webServer>

我希望这有助于!

这篇关于SP2010客户端对象模型3 MB的限制 - 更新maxReceivedMessageSize犯规得到应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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