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=300in connectionString in web.config file. This point I have done, but still I get the same error.I also need to set
commandTimeoutthrough code. My problem : I am not able to modify the defaultcommandTimeoutBecause I am usingDataTier_Using_SQLClientto connect to database. This does not contain thecommandTimeoutproperty .Actually default command timeout is 30 seconds only.