2017-10-07 14 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

これらのテーブルのデータ量に問題がありました。 2番目のテーブルにはフィールドが多すぎるので、LinQを使って部分的に取ります。 –

答えて

0

一つが起こっている:

  1. PREVIOUSサービス呼び出しが例外を引き起こしましたそして接続は失敗しました。ほとんどの場合、サービスコールは例外をスローしないで、むしろエラー結果を返します。
  2. 接続がタイムアウトしました。 closetimeout、sendtimeout、receivetimeoutを確認してください。 Setting WCF Connections
関連する問題