Server terminating connection when consuming the same service for the second time

0

I have a problem, when consuming the same method of a service more than once, during the first call the method works normally, however, when the same method is called in another part of the code, with the same parameters, an exception is thrown and the service is not even consumed. Below are the prints of the exceptions and their inner exceptions.

Thisfirstimagerepresentstheexternalexceptionthatistriggered,aftergoingthroughtheinternalexceptionswegethere:

Belowisthecodesnippetfortheconfigurationoftheclientthatconsumesthisservice.

<bindings><basicHttpBinding><bindingname="BasicHttpBinding_ICobrancaService"
             maxBufferSize="2147483647"
             maxReceivedMessageSize="2147483647"
             openTimeout="00:10:00"
             closeTimeout="00:10:00"
             sendTimeout="00:10:00"
             receiveTimeout="00:10:00"/>
  </basicHttpBinding>
</bindings>   

The WCF server is running in a project of type Windows Application , communication is done through HTTP . Below is the service configuration on the server

  <service name="MEU_PROJETO.Implementations.CobrancaService">
    <host>
      <baseAddresses>
        <add baseAddress="http://localhost:8733/Design_Time_Addresses/MEU_PROJETO/CobrancaService/" />
      </baseAddresses>
    </host>
    <endpoint address="" binding="basicHttpBinding" contract="MEU_PROJETO.Interfaces.ICobrancaService">
      <identity>
        <dns value="localhost" />
      </identity>
    </endpoint>
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  </service>

Do you have any idea what might be causing this error?

    
asked by anonymous 23.02.2017 / 18:33

0 answers