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

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

问题描述

我正在使用客户端对象模型与 Sharepoint 2010 交互.当我尝试使用客户端 OM 上传大于 3 MB 的文档时,它给出了错误请求.Microsoft 建议这个来解决问题.我试过了并更新了 maxReceivedMessageSize 属性.重新启动系统后它工作正常,但不适用于正在运行的共享点服务器.

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.

我假设设置可能已保存在内存中,因此需要重置应用程序,但我不知道要重置什么.我尝试重置不同的 Sharepoint 服务.我曾尝试在 IIS 中重置 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 增加其文件大小.
Ø 作为SharePoint站点管理员,通过
访问SharePoint 2010 Management Shell1. 在开始"菜单上,单击所有程序".
2. 单击 Microsoft SharePoint 2010 产品.
3. 单击 SharePoint 2010 命令行管理程序.
Ø 然后运行下面的命令.

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 - 已注册
Add-PSSnapin Microsoft.SharePoint.Powershell
$ws = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$ws.ClientRequestServiceSettings.MaxReceivedMessageSize = 2147483647
$ws.Update()

按照以下步骤告诉 Asp.Net 增加其文件大小.
Ø 编辑所有涉及的web.config文件,添加''元素.
完成后,您的添加内容应如下例所示.
Ø 2147483647 字节等于 1.99 GB.

<httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="2147483647" requestLengthDiskThreshold="2147483647" executionTimeout="18000"/>

按照以下步骤告诉 IIS 7.0 及更高版本增加其文件大小.
编辑所有涉及的 web.config 文件以添加元素".
完成后,您的添加内容应如下例所示.


<安全>



</security>

我希望这会有所帮助!

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

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