I have a windows service and I wanted to add capability to send messages from this service to a terminal.
The problem is that I get the following error when I try to create a channel from my windows service:
"There was no endpoint listening at net.pipe://localhost/8084/
ipient that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details."
However, I verified that using the same code from another terminal I can send messages to the listener terminal shown above.
Following is the code I am using to send the message. The number in the code below corresponds to the process id of the terminal. For simplicity it's shown hardcoded.
string addr = "net.pipe://localhost/8084/MessageRecipient";
ChannelFactory<SMS_svc.WCF.IMessageLogger> factory =
SMS_svc.WCF.IMessageLogger proxy = factory.CreateChannel();