Wednesday, August 08, 2007

Port Sharing Features in WCF

HTTP with Port 80 allows to share Port 80 with multiple web applications. If you want other TCP ports to be shared by multiple applications, there is not an easy way to achieve the same. Windows Communication Foundation (WCF) allows multiple application to share the same TCP port. I had written an article on the same as how WCF enable a TCP port to be shared by multiple applications

Please have a look on Port sharing feature of WCF

1 comment:

Unknown said...

Hi Nishith,
I have read your article about port sharing.
I use this sharing by using the Net.Tcp Sharing Service. Usually it works fine but sometimes I get error in system event log and after this the service is unavailable.
The error look like this:
Event Type: Error
Event Source: SMSvcHost 3.0.0.0
Event Category: Sharing Service
Event ID: 8
Date: 10/11/2008
Time: 23:56:07
User: NT AUTHORITY\LOCAL SERVICE
Computer: BORIS
Description:
An error occurred while dispatching a duplicated socket: this handle is now leaked in the process.
ID: 5612
Source: System.ServiceModel.Activation.TcpWorkerProcess/32544351
Exception: System.TimeoutException: This request operation sent to http://schemas.microsoft.com/2005/12/ServiceModel/Addressing/Anonymous did not receive a reply within the configured timeout (00:01:00). The time allotted to this operation may have been a portion of a longer timeout. This may be because the service is still processing the operation or because the service was unable to send a reply message. Please consider increasing the operation timeout (by casting the channel/proxy to IContextChannel and setting the OperationTimeout property) and ensure that the service is able to connect to the client.

I can't find any information regarding this error.
Do you have any ideas?
Can you suggest me something?

Thanks in advance,
Boris.