FIX: Smsvchost.exe for the WCF service stops responding when you run a WCF service in .NET Framework 3.0 or in .NET Framework 3.5

Article translations Article translations
Article ID: 2536617 - View products that this article applies to.
Expand all | Collapse all

SYMPTOMS

Consider the following scenario:
  • You run a Microsoft .NET Framework 3.0-based or .NET Framework 3.5-based Windows Communication Foundation (WCF) service.
  • The WCF service uses the Net.Tcp Port Sharing Service (Smsvchost.exe) and is hosted on a computer that is running Internet Information Services (IIS).
  • One of the following conditions is true:
    • The CPU usage is high on the computer that is running IIS.
    • A throttle occurs in a service model for the WCF service.
    • Multiple requests are sent to the WCF service at the same time.
In this scenario, the WCF service takes longer than one minute to process a request from a client application. Additionally, an error message that assembles the following event entry is logged in the event log:

Log Name: System

Source: SMSvcHost 3.0.0.0

Date:

Event ID: 8

Task Category: Sharing Service

Level: Error

Keywords: Classic

User: LOCAL SERVICE

Computer:

Description: An error occurred while dispatching a duplicated socket: this handle is now leaked in the process.

ID: 2620

Source: System.ServiceModel.Activation.TcpWorkerProcess

Exception:

System.TimeoutException: This request operation sent to 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.
Note You must restart IIS to recover the WCF service from this issue.

CAUSE

This issue occurs because the Smsvchost.exe process times out after one minute when it tries to transfer an incoming connection request to the W3wp.exe worker process. Additionally, this time-out is non-configurable.

When the CPU has a heavy workload, or when many concurrent connection requests are incoming, the Smsvchost.exe process cannot transfer the incoming connection to the W3wp.exe worker process within one minute. Therefore, the Smsvchost.exe process times out and eventually stops responding. When this issue occurs, the Smsvchost.exe process cannot route later requests to the W3wp.exe worker process until IIS is restarted.

RESOLUTION

To resolve this issue, apply hotfix 2504602 that is described in Microsoft Knowledge Base (KB) article.

For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2504602 A hotfix rollup package is available for WCF in the .NET Framework 3.0 SP2, in the .NET Framework 3.5 SP1 and in the .NET Framework 4

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Properties

Article ID: 2536617 - Last Review: November 7, 2011 - Revision: 5.0
APPLIES TO
  • Windows Communication Foundation 3.0
  • Windows Communication Foundation 3.5
  • Microsoft .NET Framework 3.0
Keywords: 
kbqfe kbfix kbsurveynew kbexpertiseadvanced KB2536617

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com