Hanging WCF Service




Suffering from a hanging WCF service? I was.  The hanging wasn’t in my service code but in the depths of service side WPF.

Apparently the serverside was being throttled within WCF instelf (see this article) due to many open connections.  Basically, in the client remember to call Close on the service. 

Dim loService As New ClientService.ClientConnectClient
Dim lsOut As String = loService.SomeServiceMethod("Hello")

Because methods are so stateless (and I didn’t have to call an Open method) it didn’t occour to me that I’d need to call Close.

Although WCF is supposed to abstract you away from the network I’m finding that an understanding of the underlying technology (eg IIS) is essential to work effectively with it.




Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s