Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <configuration>
- <location path="UploadPage.aspx">
- <httpRuntime executionTimeout="600"/>
- </location>
- </configuration>
- <location path="Images/Upload">
- <system.web>
- <httpRuntime executionTimeout="600" />
- </system.web>
- </location>
- public ActionResult NoTimeout()
- {
- HttpContext.Server.ScriptTimeout = 60 * 10; // Ten minutes..
- System.Threading.Thread.Sleep(1000 * 60 * 5); // Five minutes..
- return Content("NoTimeout complete", "text/plain"); // This will return..
- }
Add Comment
Please, Sign In to add comment