2017-10-07 58 views
0

我从同一个数据库获得了2个表。只是客户和订单表。 我可以从那里获得客户,但是当我试图获得订单时我有例外。底层连接在WCF数据服务中关闭

An unhandled exception of type 'System.Data.Services.Client.DataServiceTransportException' occurred in Microsoft.Data.Services.Client.dll Additional information: The underlying connection was closed: An unexpected error occurred on a receive.;"

我的httpRuntime是:

httpRuntime targetFramework="4.5.2" executionTimeout="90" maxRequestLength="1048576" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" requestLengthDiskThreshold="2147483647"/>

而这个错误:

Error: Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation

+0

问题在于这些表中的数据量。第二张桌子有太多的领域,我使用LinQ部分采取他们。 –

回答

0

一两件事情正在发生:

  1. 先前的服务呼叫已导致异常连接失败。在大多数情况下,服务呼叫应该不会引发异常,而是会返回错误结果
  2. 连接超时。检查closetimeout,sendtimeout,receivetimeout。见Setting WCF Connections
相关问题