c# - The socket connection was aborted in wcf -


i had created dynamic endpoint in server side , endpoint used client side.

server side code:

 (int = 1; <= 3; i++)             {                 host.addserviceendpoint(typeof(pokerservice.iplayerservice),                                                new nettcpbinding(),                                                @"net.tcp://localhost:5054/player" + i);              } 

client side:

nettcpbinding binding = new nettcpbinding(securitymode.message); binding.name = "nettcpbinding_iplayerservice"; binding.security.message.clientcredentialtype = messagecredentialtype.issuedtoken;   endpointaddress myendpointadd = new endpointaddress(new uri("net.tcp://localhost:5054/player1"), endpointidentity.creatednsidentity("pident.cloudapp.net"));  var playerchannelfactory = new duplexchannelfactory<clientapplication.playerservice.iplayerservice>(new playerhandler(handler, this), binding, myendpointadd); 

but give error in following line :

player loggedin = playerserviceproxy.login("testuser" + guid.newguid().tostring()); 

the error is:

"the socket connection aborted. caused error processing message or receive timeout being exceeded remote host, or underlying network resource issue. local socket timeout '00:00:59.9870000'."

have idea?

it seems timeout. review client , service timeouts configuration.

also, try use svctraceviewer.exe review wcf trace


Comments