I have hosted my WCF service in Windows Service and when I am trying to consume from my client application I am getting following error.Any help will be appreciated.
Could not connect to http://localhost:8731/IMSWCFService/Service1.
TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:8731.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it 127.0.0.1:8731
If the service is defined in the current solution, try building the solution and adding the service reference again.