2017-10-07 118 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
相關問題