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

Rate It (3)

Last post 07-15-2008 3:33 AM by sepideh_om. 28 replies.

Sort Posts:

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

    07-03-2007, 6:22 AM
    • Loading...
    • deva82
    • Joined on 07-03-2007, 10:07 AM
    • Posts 1

    This solution is work for me..

    thanks a lot.

    Filed under:
  • Re: Error: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

    07-29-2007, 9:33 PM
    • Loading...
    • cloud1414
    • Joined on 07-30-2007, 1:28 AM
    • Posts 1

    I'm having the same problem. i have already set "Connect Timeout=0"... and my query when running in query analyzer takes only 7 secs.. shouldn't that be fast enough? 

     pls help...

     

    thanks..
     

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

    11-06-2007, 12:25 PM
    • Loading...
    • wanderlust
    • Joined on 07-24-2007, 2:06 PM
    • Posts 12

    Thanks the command timeout=0 did the trick!

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

    11-28-2007, 11:20 PM
    • Loading...
    • Tom Menacher
    • Joined on 11-29-2007, 4:11 AM
    • Maumee Ohio USA
    • Posts 1

    I got the same error executing a complicated stored procedure from my VB.NET application.  However, rather than setting the command timeout = 0 which the documentation said is "not recommended," I just chose a longer interval of time.

    MyCmd.CommantType = CommandType.StoredProcedure

    MyCmd.CommandTimeout = 300              ' 5 minutes

    MyCmd.ExecuteNonQuery

     This solved the problem. 

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

    01-24-2008, 3:26 PM
    • Loading...
    • lapwing
    • Joined on 11-17-2006, 11:52 PM
    • Posts 19

    I am getting the same error too. The CommandTimeout is set to 30, which isn't probably a lot, but all I am doing is updating one record and then inserting 4 new records. It's being done with different SqlCommand and SqlConnection objects, so kinda unrelated. Two statements go one after another and take less then a second in Query Analyzer. What is strange is that if the update/insesrt fails in aplication and I will try exact same statement in Query Analyzer it may take 3-5 minutes to execute (different time every time), but once it's complete, and I try it again it takes less then a second. Also what is strange, it is absolutely inconsistent. It may complete ok one time (or even several) and then next time times out on update or finish update but fails the insert.

    Any ideas. Please advise. Thanks.

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

    03-05-2008, 11:25 PM
    • Loading...
    • Venkateshg
    • Joined on 03-05-2008, 6:46 AM
    • Posts 1

    HI,

    I am facing the same problem.

    My project is on .Net with SQL Server.

    I am trying to retrieve a huge data at a time from DB. Previously it is working fine.

    From three days back i am getting  "Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding."

    Even i made some changes to solve that

     in web.config i put "connect timeout = 300000" and

         CommandTimeout = 300000     (previously they are 10000)                         // 300000 = 5min

     still i am facing the same problem..

    Can any one say solution for this

    Regards,

    Venkatesh 

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

    03-11-2008, 3:48 PM
    • Loading...
    • spfeiffer13
    • Joined on 10-20-2004, 11:56 AM
    • Phoenix
    • Posts 49

    I added the code below to the web.config file and it worked.  I found that there are two things that can time out.  The SQL call can time out and the application that is running can time out.

    <system.web>
                <customErrors mode="Off"/>
                <httpRuntime appRequestQueueLimit="100" executionTimeout="60000" />
            </system.web>

     

    Hopefully this works!

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

    03-31-2008, 6:46 AM
    • Loading...
    • amit.bina
    • Joined on 03-31-2008, 10:44 AM
    • Posts 1
    Here is the best solution

    objCommand.CommandTimeout = 0

    When 0 is for no limit. 

     

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

    04-09-2008, 9:26 PM
    • Loading...
    • fig007
    • Joined on 12-16-2007, 9:54 PM
    • Posts 10

    I am getting this error inside the preview data window when selected from the dataset. How or where to I change the timeout setting?

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

    04-20-2008, 2:24 AM

    <add key="DBConnection" value="server=LocalHost;uid=sa;pwd=;database=DataBaseName;Connect Timeout=200; pooling='true'; Max Pool Size=200"/>
     

    This is working for me :) thank you.

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

    04-23-2008, 5:10 AM
    • Loading...
    • gunjan.jha
    • Joined on 12-17-2007, 11:09 AM
    • kolkata india
    • Posts 17

     

    set the command.connectiontimeout property to maximum integer value

    it will solve the problem

     

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

    06-03-2008, 8:35 AM
    • Loading...
    • kmarchiony
    • Joined on 07-17-2007, 10:38 PM
    • Posts 1

    'Sample code that has solved a similar problem for me:

    Dim myCommand As New SqlCommand(sql, myConnection, myTrans)

    myCommand.CommandType = CommandType.StoredProcedure

    myCommand.CommandTimeout = 0

    'Solve the problem at run time

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

    06-16-2008, 3:23 AM
    • Loading...
    • sara_23apr
    • Joined on 04-05-2006, 5:42 AM
    • Posts 75

     

    Thanks every body the solutions were very helpfull

    CmdGenCls.CommandTimeout = 300       worked for me

     Regards

    Sara

  • Idea [Idea] Re: Error: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

    07-15-2008, 3:33 AM
    • Loading...
    • sepideh_om
    • Joined on 05-06-2008, 7:47 AM
    • Posts 1

    thanks for your solution on command timeout=0 it works for me :-)

Page 2 of 2 (29 items) < Previous 1 2