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

Asked

Viewed 76 times

0

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

Esta primeira imagem representa a exceção externa que é disparada This first image represents the external exception that is fired, after going through the internal exceptions we have come this far:

Percorrendo as exceções internas chegamos até esta aqui:

Below follows the code snippet referring to the client’s configuration that consumes this service.

 <bindings>
  <basicHttpBinding>

    <binding name="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 server WCF is running on type design Windows Aplication, communication is carried out through HTTP. The below follows the server service configuration

  <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 mistake?

  • What kind of service? How is the call made? How is the server code that answers this call?

  • I will edit the post to answer your questions

  • That is the intention =)

  • @jbueno edition performed

  • You haven’t shown your service call code, so here’s a question: you’re using the same object to call the service at different points in the code?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.