System.Web.HttpException: Request timed out

Default olarak asp.net sayfalarında herhangi bir işlem için, machine.config'de tanımlanmış maximum ( ExecutionTimeout ) süre 90 saniyedir. Eğer herhangi bir işlem 90 saniyeden fazla sürerse

System.Web.HttpException: Request timed out

hatası döner.

Bunu değiştirmek iki yol var. Birincisi machine.config üzerinde bu değişikliği yapmak (ki bu değişiklik tüm IIS üzerinde host edilen uygulamalar için geçerli olacaktır), ikinci yol ise web.config de uygulamanıza has olarak bunu yapmak.

  1. Web.config de ExecutionTimeout değerinin belirlenmesi.

    <configuration>
    <system.web>
    <httpRuntime executionTimeout="90" maxRequestLength="4096" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" />
    </system.web>
    </configuration>


    Burada executionTimeout attribute'u için istediğiniz süreyi belirleyebilirisiniz.

  2. machine.config üzerinde ExecutionTimeout değerinin belirlenmesi.

    machine.config üzeirnde aşağıdaki değişikliği yapmak gerek. machine.config dosyası %SystemRoot%\Microsoft.NET\Framework\%VersionNumber%\CONFIG\ adresinde bulunur. Yani eğer işletim sisteminiz C:\ dizini altında ise ve .net framework 2.0 için machine.config'e erişmek istiyorsanız klasörünüz

    "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config"

    şeklinde olacaktır.

    <httpRuntime executionTimeout="90" maxRequestLength="4096" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" />

    bu satırdaki executionTimeout süresini değiştirmek yeterli olacaktır.

Ref : http://www.powupload.com/System.Web.HttpException-Request-timed-out.aspx

Yorumlar

Bu blogdaki popüler yayınlar

T-SQL'de Bölme işleminde ondalıklı değerlerin korunması

'Sys' is undefined - AJAX Extensions 1.0

Datasource'u olan bir DropDownlist'e ListItem Eklemek