hmm, I just looked up the documentation
http://msdn2.microsoft.com/en-us/library/system.web.httpserverutility.scripttime
out.aspx
It says that ScriptTimeout only works when you have <compilation
debug="true"> in the web.config so it won't be an option for my production
application
Andy
> Try but AFAIK in classic ASP, the Server.ScriptTimeOut was initialized for
> each request with the IIS default value. Changes to this value were only
[quoted text clipped - 36 lines]
>>>
>>> Andy
Patrice - 18 Sep 2007 17:06 GMT
Have you tried ? Could it be something such as :
- the timeout is taken from the IIS application configuration
- you can still change this value programmatically ?
---
Patrice
> hmm, I just looked up the documentation
>
[quoted text clipped - 46 lines]
>>>>
>>>> Andy
Patrice - 18 Sep 2007 17:30 GMT
I make a quick test and it looks like :
- Server.ScripTimeOut is initialized to a default value with each request
- I'm able to change the value programmatically even when debug is false
So you should be able to change this value just in the upload page. It will
still have the default value in all other pages...
--
Patrice
> Have you tried ? Could it be something such as :
> - the timeout is taken from the IIS application configuration
[quoted text clipped - 54 lines]
>>>>>
>>>>> Andy
Andy Fish - 19 Sep 2007 17:45 GMT
thanks patrice and ben - I should be able to put my own handling in then :-)
Andy
> Have you tried ? Could it be something such as :
> - the timeout is taken from the IIS application configuration
[quoted text clipped - 54 lines]
>>>>>
>>>>> Andy
Andy Fish - 27 Sep 2007 10:52 GMT
just as a follow up
in my global.asax Application_BeginRequest handler I was able to test the
URL and reset Server.ScriptTimeout if the url is the file upload page,
otherwise leave it as the default
I verified that this all works perfectly
> thanks patrice and ben - I should be able to put my own handling in then
> :-)
[quoted text clipped - 59 lines]
>>>>>>
>>>>>> Andy
Ben Schwehn - 18 Sep 2007 18:22 GMT
> http://msdn2.microsoft.com/en-us/library/system.web.httpserverutility.scripttime
out.aspx
>
> It says that ScriptTimeout only works when you have <compilation
> debug="true"> in the web.config so it won't be an option for my production
> application
Hello Andy,
This is an error/typo in the documentation. ScriptTimeout is ignored (or
rather it's set to 30.000.000 seconds, around 350 days) when debug is
set to true, so that you can set breakpoints and do debugging etc
without having the page timeout.
Ben