eConnect 到 Great Plains 错误:“超时已过期” - 如何修复?
尝试通过 SOAP 调用提取 Great Plains 过去 30 天的对帐订单时收到以下错误:
服务器
System.Web.Services.Protocols.SoapException: 服务器无法处理请求。 ---> System.Data.SqlClient.SqlException: 超时已过。超时时间 完成前已过去 操作或服务器不 回应。 在 System.Data.SqlClient.SqlConnection.OnError(SqlException 异常,布尔值 断开连接) 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException 异常,布尔值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 的人都知道这一点,直到几周前超时错误开始时才起作用。
Receiving the following error when trying to pull reconciled orders from the last 30 days in Great Plains from a SOAP call:
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)
How can I determine or change the timeout setting? Is that a connection string variable? In our web service method, it has this at the beginning:
ConnectionString = ConfigurationManager.ConnectionStrings["gp"].ToString();
Which it gets from a web.config file:
<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>
Not all that versed in ASP/eConnect and this has worked up until a few weeks ago when the timeout error started.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将返回的记录量减少到 15 天似乎可以缓解这个问题。
Reducing the amount of records returned to 15 days seems to alleviate this issue.