Microsoft Knowledge Base Email Alertz

KBAlertz.com: FIX: Error message when you run an application that makes burst load style activation requests and calls a server component through DCOM: 0x800706ba or 0x800706bf

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 960007 - Last Review: May 15, 2009 - Revision: 3.0

FIX: Error message when you run an application that makes "burst load" style activation requests and calls a server component through DCOM: "0x800706ba" or "0x800706bf"

SYMPTOMS

When you run an application that makes a “burst load” style activation request that uses lots of threads, you receive one of the following error messages intermittently:

Error message 1
The remote procedure call failed and did not execute. (Exception from HRESULT: 0x800706BF)
Error message 2
The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
Error message 3
The remote procedure call failed. (Exception from HRESULT: 0x800706BE)
This problem occurs if the following conditions are true:
  • The application references a component on a remote computer through Distributed COM (DCOM).
  • The application creates many threads at the same time.
  • Each thread creates and then calls an instance of the component.

CAUSE

This problem occurs because the high rate of incoming requests exceeds the backlog queue limit that the AFD.SYS socket driver keeps. The AFD.SYS socket driver then rejects or closes the requests.

RESOLUTION

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

You must have Windows Server 2003 SP2 installed to apply this hotfix.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

Registry information

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756  (http://kbalertz.com/Feedback.aspx?kbNumber=322756/ ) How to back up and restore the registry in Windows
After you install the hotfix, you must set the backlog queue length that the COM runtime passes to the TCP listen function of the COM server by creating the following registry entry:
HKEY_CLASSES_ROOT\AppID\{guid}\RpcProtSeqMaxCalls
Notes
  • The guid placeholder represents the application ID that is generated for the server process that must accept calls at a faster rate than the default setting allows.
  • The default value for the RpcProtSeqMaxCalls registry entry is hex 0x0A or decimal 10. The maximum value is 0x64 or decimal 100.
  • This registry setting only takes effect after you apply the hotfix that this article describes and after the computer is restarted.
Additionally, you may have to change the following registry entries to increase the dynamic backlog queue for the socket driver and set the backlog queue length:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AFD\Parameters
  • EnableDynamicBacklog
  • MinimumDynamicBacklog
  • MaximumDynamicBacklog
  • DynamicBacklogGrowthDelta
The following are the recommended values for this registry entry.
Collapse this tableExpand this table
Value NameValue (REG_DWORD)
EnableDynamicBacklog1
MinimumDynamicBacklog20
MaximumDynamicBacklog20000
DynamicBacklogGrowthDelta10
You can turn off the SynAttackProtect global key on the server. To do this, you must set the vaule of the following registry entry to 0x0:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\SynAttackProtect
Note Turning off the SynAttackProtect global key is not required in this scenario.

For more information about how to set these registry keys, click the following article number to view the article in the Microsoft Knowledge Base:
142641  (http://kbalertz.com/Feedback.aspx?kbNumber=142641/ ) Internet server unavailable because of malicious SYN attacks

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
x86 version for Windows Server 2003
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Ole32.dll5.2.3790.44131,269,76020-Nov- 200805:29x86
x64 version for Windows Server 2003
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Ole32.dll5.2.3790.44132,626,04820-Nov- 200803:33x64SP2SP2QFE
Wole32.dll5.2.3790.44131,269,7602 0-Nov-200803:33x86SP2WOW
IA-64 version for Windows Server 2003
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatformSP requirementService branch
Ole32.dll5.2.3790.44134,101,63220-Nov- 200803:32IA- 64SP2SP2QFE
Wole32.dll5.2.3790.44131,269,76020-Nov- 200803:32x86SP2WOW

STATUS

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

MORE INFORMATION

The AFD.SYS socket driver keeps a backlog queue of incoming RDP requests that a server application will accept. This queue is limited by the hardcoded input parameter to the listen function.

The COM runtime specifies the RPC_C_PROTSEQ_MAX_REQS_DEFAULT value for the MaxCalls parameter when the COM runtime calls the RpcServerUseProtseq APIs. The RPC_C_PROTSEQ_MAX_REQS_DEFAULT value in Windows Server 2003 is 10. RPC uses this value to specify the TCP backlog queue length of the socket when RPC calls the listen function. If the value is 10, clients start to see TCP resets and RPC errors from COM calls in an environment in which more than 10 clients connect to the same server at the same time. The hotfix allows for a COM application to specify the value that COM uses as the MaxCalls parameter to the RpcServerUseProtseq APIs.

Note This hotfix only applies to the ncacn_ip_tcp protocol.

For more information about the AppID key, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn.microsoft.com/en-us/library/ms682359(VS.85).aspx (http://msdn.microsoft.com/en-us/library/ms682359(VS.85).aspx)
For more information about how to harden the TCP/IP stack, visit the following MSDN Web site:
http://msdn.microsoft.com/en-us/library/aa302363.aspx (http://msdn.microsoft.com/en-us/library/aa302363.aspx)

APPLIES TO
  • Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
  • Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems
  • Microsoft Windows Server 2003, Datacenter x64 Edition
  • Microsoft Windows Server 2003, Enterprise x64 Edition
  • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
  • Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems
  • Microsoft Windows Server 2003, Standard x64 Edition
  • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
Keywords: 
kbhotfixserver kbexpertiseadvanced kbqfe KB960007
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please