Quantcast
Channel: General
Viewing all articles
Browse latest Browse all 7363

Increase Timeout and/or Request Size

$
0
0

I've done extensive research and found many solutions and not surprisingly, nothing works.

I'm using IIS 8 (Win Server 2012) and an ASP.NET (4.0) web form application to upload files.  Generally, all of this works fine until I try anything resembling a large file.

I have this in my web.config:

<security><requestFiltering><requestLimits maxAllowedContentLength="52428800" /></requestFiltering></security>

I also have this:

<httpRuntime executionTimeout="7200" maxRequestLength="2097151"/><compilation debug="true" targetFramework="4.0" />

Although I've read that the former is what is required for IIS 7+

I've even inserted this in the code of the page:

HttpContext.Current.Server.ScriptTimeout = 7200;

Every attempt times out at 120 second (give or take), which makes sense with the default of 110 second (+/- the 15 second interval of the check)


Viewing all articles
Browse latest Browse all 7363

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>