c# - No connection could be made because the target machine actively refused it 127.0.0.1:57240 at System.Net.Sockets.Socket -


i have been developing web service , windows service, web service have deployed in server, , windows service have deployed works in own server, use windows service call web service. fine, in few days have received below message:

system.net.webexception: unable connect remote server --->  system.net.sockets.socketexception: no connection made  because target machine actively refused 127.0.0.1:57240 @  system.net.sockets.socket.doconnect(endpoint endpointsnapshot, socketaddress  socketaddress) @ system.net.sockets.socket.internalconnect(endpoint remoteep) @ system.net.servicepoint.connectsocketinternal(boolean connectfailure, socket s4,socket  s6, socket& socket, ipaddress& address, connectsocketstate state, iasyncresult asyncresult, int32 timeout, exception& exception) --- end of inner exception stack trace - -- @ system.net.httpwebrequest.getrequeststream(transportcontext& context) @ system.net.httpwebrequest.getrequeststream() @ system.web.services.protocols.soaphttpclientprotocol.invoke(string methodname, object[] parameters) 

because target machine actively refused 127.0.0.1:57240

the "target machine" in case machine on failing code running. not remote machine. 127.0.0.1 ip address of "localhost", use 2 processes run on same machine talk each other through sockets. not unusual, can easier alternative using named pipes example.

but of course expect connect another machine, 1 has application listening. wrong program's config, trying connect service doesn't exist. there's no insight in how have happened, question missing details how selected target machine. if selected name rather ip address there's screwy going on naming service on lan. or forgot change config when went testing mode deployment mode. or gave trying bunch of stuff didn't work because firewall blocking access.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -