I think I have two problems, though they might be related:
- Trying to upload a large file, it fails. Uploading small files works.
- After a while the session times out.
To eliminate the timeout I tried to configure that in web.config file. But it didn't seem to have any effect.
The site is hosted on IIS7.
Update:
I tried http://bloggingabout.net/blogs/ramon/archive/2009/03/13/how-to-enable-large-file-uploads-in-iis7.aspx
Changed the web.config as follows:
<system.web>
<httpRuntime requestValidationMode="2.0" enableVersionHeader="false" useFullyQualifiedRedirectUrl="true" maxRequestLength="50384" executionTimeout="3600" requestLengthDiskThreshold="1200"/>
<system.webServer>
<security>
<requestFiltering allowDoubleEscaping="true">
<requestLimits maxAllowedContentLength="60000000"></requestLimits>
Still cannot upload 16 MB file: "the connection with server was reset"