接收試圖拉不甘心聽命於過去30天中大平原從SOAP調用時出現以下錯誤:eConnect大平原錯誤:'超時過期' - 如何解決?
Server</faultcode><faultstring>System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
如何確定或更改超時設置?那是一個連接字符串變量嗎?在我們的Web服務方法,它有這個開頭:
ConnectionString = ConfigurationManager.ConnectionStrings["gp"].ToString();
它從web.config文件獲取:
<configuration>
<appSettings/>
<connectionStrings>
<add name="gp" connectionString="Data Source=10.10.10.90;Integrated Security=SSPI;Persist Security Info=False;trusted_connection=true;Initial Catalog=DEFAULT;" />
</connectionStrings>
<system.web>
並非所有的ASP/eConnect精通這已經工作了直到幾個星期前超時錯誤開始。