I am facing one problem in asp.net Application with sql server database.
I am getting Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
In my code stored procedure is taking around 43 seconds and after 30 seconds
I am getting this error. For Solving this I have analyzed many sites and found these solutions:
I need to set
Connection Timeout=300
in connectionString in web.config file. This point I have done, but still I get the same error.I also need to set
commandTimeout
through code. My problem : I am not able to modify the defaultcommandTimeout
Because I am usingDataTier_Using_SQLClient
to connect to database. This does not contain thecommandTimeout
property .Actually default command timeout is 30 seconds only.