0

I am using Entity Framework to communicate with SQL Server. I set connection timeout = 36000 in connection string, then set command Timeout = 36000 for EF context object. I also set this line in web config.

<httpRuntime executionTimeout="36000" />

I also set timeout = 28800 like this.

<authentication mode="Forms">
            <forms loginUrl="~/view/login/Login.aspx" timeout="28800" defaultUrl="~/view/login/WellComePage.aspx"/>
        </authentication>

After setting this all, i fetch data from db. It works fine for small data, but for long queries i got following message after 44 seconds. Although i didn't set 44 anywhere.

'Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.'

Any idea what i am doing wrong here.

Waqas Ali
  • 1,441
  • 2
  • 20
  • 25

0 Answers0