Gets or sets the value that specifies the maximum number of seconds that a request is allowed to execute before being automatically shut down by ASP.NET.

Namespace:  EasyAlgo.EAUpload
Assembly:  EasyAlgo.EAUpload (in EasyAlgo.EAUpload.dll)
Version: 1.3.2.0

Syntax

C#
public int ExecutionTimeout { get; set; }
Visual Basic (Declaration)
Public Property ExecutionTimeout As Integer

Field Value

Type: System..::.Int32
A Int32 value that specifies the maximum number of seconds that a request is allowed to execute before being automatically shut down by ASP.NET.

Remarks

This property is a reflection of EAUpload configuration parameter (<EasyAlgo.EAUpload>/<Environment ... ExecutionTimeout="" ... >) and it is a replacment of httRuntime/executionTimeout parameter of the httpRuntime configuration.
You should increase value of this property if you upload large files.

By using this property you can create a flexible policy for requests processing.

The logic of EAUpload component defines:
  • If ExecutionTimeout property value is specified by your code or by ExecutionTimeout configuration parameter, then EAUpload component uses this value for request processing. "executionTimeout" parameter of httpRuntime configuration is ignored.
  • Otherwise ExecutionTimeout property contains a value that is specified in "executionTimeout" parameter of system.web/httpRuntime section in the web.config file.
  • If previous conditions are not valid then EAUpload component uses default value that is defined for ASP.NET HTTP run-time:
    • In the .NET Framwork 2.0 and above, the default is "00:01:50" (110 seconds).
    • In the .NET Framework 1.0 and 1.1, the default is 90.
httpRuntime Element (ASP.NET Settings Schema)

Note:This time-out applies only if the debug attribute in the compilation element is False. To help to prevent shutting down the application while you are debugging.


Note:If you want to change this property at the runtime, you should define it at the Initializing stage of an upload (see EasyAlgo.EAUpload..::.UploadState for more information). All changes for processed uploads will be ignored. Also if you have changed this property for the whole of EAUpload component (EAUploadModule..::.CommonEnvironment property) then new value will be used for the new uploads only.

Exceptions

ExceptionCondition
EasyAlgo.EAUpload..::.EAUploadConfigException Thrown when the specified value is less than or equal to 0 seconds.

See Also