Logo 
Search:

C# Forum

Ask Question   UnAnswered
Home » Forum » C#       RSS Feeds

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

  Asked By: Nancy    Date: May 13    Category: C#    Views: 1780
  

I am getting following error:

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

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Scarlett Hughes     Answered On: May 13

Description:This error  generally occurs while trying to execute a Stored Procedure using Microsoft Application Blocks [Data Access Block]

Solution:
1. Set "Timeout=s" in your connection string, where s is seconds
2. Set these properties
Connection.ConnectionTimeout
The time (in seconds) to wait for a connection to open. The default value is determined by the specific type of connection that you are using Command.ConnectionTimeout

The time in seconds to wait for the command to execute.

 
This post is locked for further answers.