Large Files in SBS 2008’s Companyweb

If you are making use of document libraries in your companyweb on SBS 2008, you may have noticed that you aren’t able to upload large files (> ~28MB) to a document library.  When you attempt, you receive a 404 error in your browser.  Additionally, you have tried setting the upload size in SharePoint Central Administration, but you are still encountering the problem.


This behavior is due to certain changes within IIS7.  To increase the upload file size limit for your SBS 2008 companyweb, you must edit the web.config file for the companyweb application in addition to increasing the limit in SharePoint Central Administration.


First – set the new limit in SharePoint Central Administration (if you haven’t already):


  1. Log in to your SBS and navigate to Start | Administrative Tools | SharePoint 3.0 Central Administration
  2. At the User Access Control prompt, click Continue
  3. In SharePoint 3.0 Central Administration, navigate to the Application Management tab and click on Web Application General Settings.
  4. On the Web Application General Settings page, verify that the selected web application is https://remote.domain.com:987. 
    1. If this application is not selected, click on the web application and select Change web application.
    2. In the Select Web Application window that opens, click to select the SBS SharePoint application.
  5. In the Maximum Upload Size field, enter the maximum upload size you want to allow.
  6. Scroll to the bottom of the page and click OK to save the changes.

After setting the increased limit in SharePoint 3.0 Central Administration, you must set the increased value in the companyweb web.config file:


  1. Open My Computer and navigate to C:\Program Files\Windows Small Business Server\bin\webapp\InternalWebSite
  2. Right-click on the web.config file and select Properties.
  3. Go to the Security tab and verify the administrative user you are logged in as has modify permissions on this file.  (By default, the administrator account you create during setup will only have read access). 
  4. If necessary, click the Edit button to give your administrative user Modify permissions.
  5. Click OK to close the file properties.
  6. Open the web.config file in notepad.
  7. Scroll to the bottom of the file.  Directly above the </Configuration> line, enter the following:
  8. </System.Workflow.ComponentModel.WorkflowCompiler>
     <system.webServer><security><requestFiltering><requestLimits maxAllowedContentLength="52428800" /></requestFiltering></security></system.webServer>
  9. The maxAllowedContentLength= value listed is in bytes.  The value dispayed (52428800) corresponds to 50 MB.  I recommend making this value slightly larger than the max upload size you specified in SharePoint 3.0 Central Administration.  If this value is equal to or less than the value in SharePoint 3.0 Central Administration, users may not receive the friendly error page indicating they exceeded the file size limit.
  10. Save the changes to the web.config file.
  11. Open IIS 7 Administration (Start | Administrative Tools | Internet Information Services (IIS) Manager ).
  12. Expand <servername>, then expand Sites.
  13. In the list of sites in the content pane, click to highlight the SBS SharePoint site.
  14. In the Manage Web Site section of the right-hand pane, click Restart to restart the web site.

Your users should now be able to upload large files to your companyweb document libraries.  However, depending on how large of files users are actually uploading, their uploads may still fail – not due to a size restriction, but rather an IIS timeout issue.  To adjust the timeout values for your site, take a look at this post over on Don’s blog.

6 thoughts on “Large Files in SBS 2008’s Companyweb”

  1. I haven’t seen that behavior. Is the site accessible when the changes are removed from the web.config file?

  2. Slightly off topic… With SBS 2008’s implementation of Sharepoint, is it feasable and/or recommended to utilize its storage from an offsite location? If so, what is the best way to make this connection sticky so that you don’t have to log in each time to save or retrieve a file. IOW, can I open Word at home and have my SBS companyweb sharepoint site show up as a default storage location?

    Thanks!

    Randy

  3. Randy – SharePoint storage can definitely be used for remote locations. As far as making the connection sticky – try adding your companyweb URL (https://remote.company.com:987) to the Trusted Sites (or Local Intranet) zones in IE. If you’re using a laptop joined to the domain, having the URL in the Local Intranet zone will enable pass-through authentication. You can accomplish the same thing with a home PC not joined to the domain by having your local username / password match your domain user credentials. Otherwise putting the URL in the Trusted Sites will at least allow you to save your credentials for the site. You probably won’t want to try to set a SharePoint library as your default storage location in Word – but you can definitely create a Network Place that points to your public SharePoint URL to simplify saving to SharePoint from within Office.

  4. Chad,

    This would be really helpful, only the HTML formatting looks all screwed up so I cannot read the correct modifications to the web.config file. I tried both IE and Firefox, so I don’t think it is at my end. Can you take another look?

  5. Thanks Andy – not sure what happened with the formatting. It’s fixed now, but it looks like the theme is cutting off the second line. If you access the blog via the RSS feed, it should be fine. Otherwise, here’s the code:

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>