My stored procedure takes 42 seconds to execute . My web application gets timeout after 30 seconds. i have added:
< httpRuntime targetFramework="4.5.1" maxRequestLength="157286400"
executionTimeout="36000" />
in my system.web in web.config file. I also added Connect Timeout = 300000
in my connection string of the web.config.
But none of the solutions works for me. I tried to clear the SQL Server deadlock by executing below commands :
exec sp_updatestats
dbcc freeproccache