This error occurs when a database query or stored procedure is not able to complete execution before a pre-set timeout period expires.
Do one thing
Increase the amount of time that ASP.NET waits for the database query to run before throwing an exception. Programmatically set the CommandTimeout property in the IDbCommand object in a code customization in your application. IDbCommand is a .NET Framework object. CommandTimeout specifies the amount of time in seconds that .NET waits for the database query command to execute. Set that value high enough to exceed the amount of time required to execute your query or database stored procedure. You may need to adjust this timeout parameter on an application-by-application basis.
C#:
System.Data.IDbCommand.CommandTimeout = 50;
secondly,
Increase the amount of time that your database driver waits on your connection. This is different from the IDbCommand.CommandTimeout property. Both must be set properly for your query or stored procedure to run.
For more info
visit[
^]
Hope it helps ...... :)