1、进入管理中心->应用程序管理->Web 应用程序常规设置,将最大上载大小改为您最大的文件大小,点击确定。

     PS:可指定大文件大小至多为2,047 MB。

2、点击开始->所有程序->管理工具->Internet 信息服务(IIS)管理器,右键网站属性(例如:SharePoint - [端口]),将连接超时120(秒),改为更大的值,例如(文件大小/网速)。

3、对C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\LAYOUTS目录下的web.config进行修改,
将现有代码:

Code
 <location path="upload.aspx">
    <system.web>
      <httpRuntime maxRequestLength="2097151" />
    </system.web>
  </location>
更改为:
Code
 <location path="upload.aspx">
    <system.web>
      <httpRuntime executionTimeout="999999" maxRequestLength="2097151" />
    </system.web>
  </location>
对C:\inetpub\wwwroot\wss\VirtualDirectories\[端口]下web.config进行修改,

现有代码:

Code
<httpRuntime maxRequestLength="51200" />
更改为:

Code
<httpRuntime executionTimeout="999999" maxRequestLength="51200" />

4、如果您使用的是Windows2008+IIS7,对C:\inetpub\wwwroot\wss\VirtualDirectories\[端口]下web.config进行修改

在<configuration>节点下添加以下节点

Code
<system.webServer>
  <security>
    <requestFiltering>
      <requestLimits maxAllowedContentLength="52428800"/>
    </requestFiltering>
  </security>
</system.webServer>
PS:

     (1)、52428800 是文件的字节数。

     (2)、默认情况下,IIS7是不允许上传29M以上的文件的(包括29M)。

     (3)、如果您觉得每次修改web.config比较不爽,您也可以修改C:\Windows\System32\inetsrv\config\applicationhost.config,当然这会影响整个服务器的全局配置。

 

此文章由 Admin 于 2009-09-01 09:32:59 编辑

本日志由 胡子 于 2008-08-25 20:03:30 发表,目前已经被浏览 1655 次,评论 0 次;

作者添加了以下标签: SharePoint上传大文件出错处理办法

引用通告:http://21pt.com/Article/74/Trackback.ashx

评论订阅:http://21pt.com/Article/74/Feeds.ashx

相关文章

评论列表

  1. Gravatar
    l3ding
    2009-08-31 18:48:08 | # | 回复
    code里的东西怎么才能看见呢?
(必填)
(必填,不会被公开)
你的评论在博主审核后方可公开。