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

Error: “Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.”

Keyword: timeout, expired, c#, asp.net, dbcommand, server, execute

Scenario: Error when executing your DbCommand more than 30 seconds.

Solution: Extend your CommandTimeout

DbCommand dbCommand = new DbCommand();
dbCommand.CommandTimeout = 120;

1 thought on “Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.”

Leave a Comment

Your email address will not be published. Required fields are marked *