Time out period not elapsed, but still timing out (see code)?

后端 未结 3 1064
太阳男子
太阳男子 2021-01-07 10:52

OK I keep getting this error after about 3-4 minutes of churning:

 Timeout expired.  The timeout period elapsed prior to completion of the operation or the s         


        
3条回答
  •  心在旅途
    2021-01-07 11:15

    It looks like the timeout is happening when you're running the sql stored procedure (Your exception is of type SqlException). You would need to increase the Timeout of your Sql Stored Procedure execution, but I don't think you can do that with the SqlHelper class.

    You'll need to go with the SqlCommand class, and set the timeout there.

提交回复
热议问题