Wednesday, September 23, 2009

Tweaking IIS & web.config connection timeout setting

Microsoft Internet Information Services
If IIS is timing out when you upload large files, you can change "Connection Timeout" property to ensure that larger files can be uploaded successfully.
  1. Go to Start –> All Programs -> Administrative Tools –> Internet Information Services (IIS) Manager.
  2. Right-click the virtual server you want to configure, and then choose Properties.
  3. Click the Web Site tab.
  4. In the Connections section, in the Connection timeout box, type the number of seconds you want IIS to wait before timing out.
  5. Click OK to save settings.
Web.config

There are other settings that you can change in the web.config file that also affect connection timeout.

Update maxRequestLength and executionTimeout attributes belonging to the httpRuntime tag.

executionTimeout = <Time in Seconds>

maxRequestLength = <File size in KB> (by default for ASP.NET applications, its set to 4096 (4MB), but because SharePoint supports 50MB so its set to 51200)

Example:

<!-- 102400 = 100MB -->
<httpRuntime executionTimeout="999999" maxRequestLength="102400" />


Extending session timeout for SharePoint 2007 instance using forms-based autentication.

Change the timeout attribute belonging to the forms tag in the web.config file:

<forms loginUrl="Login.aspx" timeout="300"/>

This will force a timeout in 5 minutes of inactivity.

This setting equally applies to any ASP.NET application that uses forms-based authentication.

Monday, September 21, 2009

Using blogger for my blog

On Sunday September 20, 2009 I moved all my blog postings from my own SharePoint 2007 server located at http://cisa.ca/ to blogger.com. I have nothing against SharePoint 2007 as it served me quite well. I decided to move my blog because I started seriously falling behind on backups of the blog site and felt that sooner or later I may lose everything. I found blogger.com to be easy to use. More importantly, I do not need to worry about backups as I trust google will take care of that.