Timeout when I run application

3

When I run my application that calls several web services, it sends me an error mentioning the waiting time exhausted.

I have tried to adapt my app.config file in several ways but it still gives me the same error.

Any idea how I can fix this?

Here is the code of my configuration file:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <configSections>
        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b012542c561934e089" >
            <section name="ExportDetails.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b012542c561934e089" requirePermission="false" />
        </sectionGroup>
    </configSections>
    <startup> 
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
    </startup>
    <applicationSettings>
        <ExportDetails.Properties.Settings>
            <setting name="ExportDetails_WebServices_list"
                serializeAs="String">
                <value>https://localhost/webservicetest/list.asmx</value>
            </setting>          
        </ExportDetails.Properties.Settings>      
    </applicationSettings>
  <system.web>
    <httpRuntime executionTimeout="240" maxRequestLength="20480" />
  </system.web>
</configuration>
    
asked by A arancibia 07.06.2016 в 17:23
source

1 answer

0

Depending on whether it is client or server code (or to be sure - both):

<system.serviceModel>
  <bindings>
    <netTcpBinding>
      <binding name="longTimeoutBinding"
        receiveTimeout="00:10:00" sendTimeout="00:10:00">
        <security mode="None"/>
      </binding>
    </netTcpBinding>
  </bindings>

  <services>
    <service name="longTimeoutService"
      behaviorConfiguration="longTimeoutBehavior">
      <endpoint address="net.tcp://localhost/longtimeout/"
        binding="netTcpBinding" bindingConfiguration="longTimeoutBinding" />
    </service>
....

Replaces the name of the WebService that you touch (and the bindings have to make sense with the WCF)

    
answered by 15.06.2016 / 10:13
source