Export (0) Print
Expand All

HttpRuntimeSection::ExecutionTimeout Property

Gets or sets the allowed execution time for the request.

Namespace:  System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[TypeConverterAttribute(typeof(TimeSpanSecondsConverter))]
[ConfigurationPropertyAttribute(L"executionTimeout", DefaultValue = L"00:01:50")]
[TimeSpanValidatorAttribute(MinValueString = L"00:00:00", MaxValueString = L"10675199.02:48:05.4775807")]
public:
property TimeSpan ExecutionTimeout {
	TimeSpan get ();
	void set (TimeSpan value);
}

Property Value

Type: System::TimeSpan
A TimeSpan value that indicates the allowed execution time for the request.

ExceptionCondition
HttpException

The request execution time exceeded the limit set by the execution time-out.

The ExecutionTimeout property indicates the maximum number of seconds a request is allowed to execute before being automatically shut down by ASP.NET. The default is 110 seconds. This time-out applies only if the debug attribute in the <compilation> element is set to false.

If the time-out expires an exception is raised. You can record the related information in the Application folder of the Event Log. You do this by enabling the application health monitoring in the <healthMonitoring> configuration element.

The following example shows how to use the ExecutionTimeout property.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft