You must Sign In to post a response.
  • Category: Webservices

    Underlying connection closed

    Hi,
    I am calling a webservice to push some data. But I am receiving an exception after 5 mins
    "The underlying connection was closed: An unexpected error occurred on a receive." when the call is waiting for the response "success" or "error" from the web service . I also maintain 10 mins time out time for web service call.
    Any idea please post.




    Thanks
    Sathish
  • #768320
    Hi,

    What was the binding name you have specified for the connection.


    bindingConfiguration="basicHttpBindingSettings"

    It will consider as BasicHTTPBinding at the end points.

    For some reason, Try to increase the timeout event also to more than 10. you have mentioned that it was showing error at 5mins itself but still can you increase the time little bit just for testing purpose.

    Thanks,
    Mani

  • #769711
    Try to add below config key in web.config file of your web service deployment. if already exist then increase the exectionTimeout value


    <httpRuntime maxRequestLength="19000" executionTimeout="360000" />

    you need to add this key in config file for both the Web-Service and Web Application .

    Hope this will get resolve the above issue.

    Thanks!
    B.Ramana Reddy


  • Sign In to post your comments