A funny thing happens when you go to central admin and change the web app settings to a higher setting while running MOSS on Server 2008.
It would appear you get an error whenever any file over 28MB's is uploaded even if you changed this setting in the web app settings all the way up to 2GB's. The security built into 2008 is at fault here. When you make the changes in the web app settings they do not get transfered to the web.config automatically. So you must manully update the web.config for all web apps needing this change and update the web.config in the 12 hive as well.
In the 12 hive we need this change. This is the web.config file in the templates gallery.
Change the web config for all web apps that need the change
This will stop the time out problem.
Now for the file size:
On a Windows Server 2008 computer that has IIS 7.0-only installations, you add the maxAllowedContentLength value. When you are running Windows SharePoint Services on a Windows Server 2008-based computer that has IIS 7.0, you find that you cannot upload files that are larger than 28 MB even though you have configured the large file upload settings. Usually, the error that users see is "The page cannot be displayed." In some circumstances, users may also see an "HTTP 404" error.
To work around this problem, set in the Web.config file for the Web application to have following settings under the <configuration> section:
To work around this problem, set in the Web.config file for the Web application to have following settings under the <configuration> section:
- Use Notepad to open the Web application Web.config file. By default, this file is in the following folder: Inetpub\wwwroot\wss\VirtualDirectories\VirtualDirectoryFolder
- Add the following settings under the <configuration> section of the Web.config file: <system.webServer><security><requestFiltering><requestLimits maxAllowedContentLength="52428800"/></requestFiltering></security></system.webServer>
Place the above code at the botom just before the close out config section like this:
No comments:
Post a Comment