[英]Timeout Exception execution in WCF due to stored procedure in SQL Server is around 4 mintues
I have a stored procedure in SQL Server which takes about 4 to 5 minutes to execute. 我在SQL Server中有一个存储过程,执行该过程大约需要4到5分钟。
I use WCF to connect to SQL Server. 我使用WCF连接到SQL Server。 But due to the longer execution time, a timeout exception occurs.
但是由于执行时间较长,会发生超时异常。
In my client I was able to change based on receivetimeout but how do I change the connection timeout in WCF??? 在我的客户端中,我能够基于receivetimeout进行更改,但是如何在WCF中更改连接超时?
更改客户端和服务器上的receiveTimeout参数上的SendTimeout参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.