2016-11-26 5 views
0

エラーは次のとおりです。WCFタイムアウトエラー

00の後に返事を待っている間に要求チャネルがタイムアウト:00:59.9339962。呼び出しに渡されたタイムアウト値をRequestに増やすか、BindingでSendTimeout値を増やします。この操作に割り当てられた時間は、より長いタイムアウトの一部であった可能性があります。あなたはより多くの情報を提供する必要が

<system.serviceModel> 
     <bindings> 
     <basicHttpBinding> 
      <binding name ="IncreaseTimeOut" sendTimeout ="00:25:00"></binding> 
     </basicHttpBinding> 
     </bindings> 
     <behaviors> 
      <serviceBehaviors> 
       <behavior name=""> 
        <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" /> 
        <serviceDebug includeExceptionDetailInFaults="false" /> 
       </behavior> 
      </serviceBehaviors> 
     </behaviors> 
     <services> 
      <service name="WCFServices.HelloService"> 
       <endpoint address="" binding="basicHttpBinding" contract="WCFServices.IHelloService"> 
        <identity> 
         <dns value="localhost" /> 
        </identity> 
       </endpoint> 
       <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> 
       <host> 
        <baseAddresses> 
         <add baseAddress="http://localhost:8733/Design_Time_Addresses/WCFServices/HelloService/" /> 
        </baseAddresses> 
       </host> 
      </service> 
     </services>`enter code here 
    </system.serviceModel> 
+0

あなたが本当に周りに60秒を待っているか、あなたが受けています要求を送信した直後のこの例外メッセージ? – Marc

答えて

0

。 私は時々クライアント側でタイムアウトを受け取ります。これは多くの理由によって引き起こされる可能性があります。ここにいくつかの例があります:

1つのネットワーク接続が不良です。

2ファイアウォールはあなたのウェブサイトをブロックします。

3つのWCF同時接続構成または最大接続制限。あなたはこのようなあなたのweb.configファイル内の接続の制限を増やすことができます。

<system.net> 
<connectionManagement> 
    <add address="*" maxconnection="500" /> 
</connectionManagement> 

デフォルト値は、あなたがこれを読むことができます詳細については、2です:scale up WCF service

関連する問題