locked
Socket Connection Aborted RRS feed

  • Question

  • User636278566 posted

    Hi all,

    I am trying to use nUnit to build automatic test cases. My project involves MVC framework and build in WPF. All the CRUD operations require a service to function.

    Facing a strange problem, when ever the request is send to the service by nUnit way. we always get this socket connection aborted error,

    can anybody help, have posted the error below.

    System.ServiceModel.CommunicationException was caught
    Message="The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '00:10:00'."

    Monday, February 11, 2013 7:25 AM

Answers

  • User1083584480 posted

    Since Nunit work with deployed applicaton so when it sent request to server, your firewall block the request. we had same isseu while we were working with one of the third party socket. it was working when we run from our application but when we install our application it failes to connect to server.

    in such case we are required secure connection between client & server (tcp protocol's default behaviour). if your 443 port number is blocked for external server or ip it will not connect.

    so you are require to open 443 port for secure communication between client and server tcp request.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, February 11, 2013 9:42 AM

All replies

  • User1083584480 posted

    there can be two issue

    one is port number issue. check is 443 is open from your firwall. get the deployed service server ip and make it trustable from your machine.

    secondly increase the timeout property value in your bindings

    Monday, February 11, 2013 7:31 AM
  • User636278566 posted

    thanks 4 reply

    Regarding the binding: The server timeout is greater than the client timeout.

    port 443: Can you plz elaborate this point, ours is a windows application, so i think there is not firewall role.

    the problem is we are able to login via application,, but from nUnit it is not happening.

    do u want any other details so that u can help..have u worked in nUnit?

    Monday, February 11, 2013 7:59 AM
  • User1083584480 posted

    Since Nunit work with deployed applicaton so when it sent request to server, your firewall block the request. we had same isseu while we were working with one of the third party socket. it was working when we run from our application but when we install our application it failes to connect to server.

    in such case we are required secure connection between client & server (tcp protocol's default behaviour). if your 443 port number is blocked for external server or ip it will not connect.

    so you are require to open 443 port for secure communication between client and server tcp request.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, February 11, 2013 9:42 AM