Microsoft KB Archive/312960

= Cannot set a fixed endpoint for a COM+ application =

Article ID: 312960

Article Last Modified on 4/5/2005

-

APPLIES TO


 * Microsoft COM+ 1.5, when used with:
 * Microsoft Windows XP Professional
 * Microsoft COM+ 1.0, when used with:
 * Microsoft Windows 2000 Standard Edition

-



This article was previously published under Q312960



Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry



SYMPTOMS
In the Distributed Component Object Model (DCOM), you use a fixed endpoint (a static port) to listen to client remote procedure calls. However, this functionality is not available to Microsoft COM+ applications. Typically, functionality is used to limit the ports that are opened through a firewall.

You can call the RpcServerUseProtseqEp function to fix the Transmission Control Protocol (TCP) port on which the COM+ application listens for the COM Object Remote Procedure Call (ORPC). However, you cannot specify a particular port for the application to use manually.



Microsoft Windows 2000
To resolve this problem, obtain the latest service pack for Microsoft Windows 2000. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to obtain the latest Windows 2000 service pack

The resolution for this problem is also included in Microsoft COM+ Hotfix Rollup 18.1. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

313582 Availability of Windows 2000 Post-Service Pack 2 COM+ hotfix rollup package 18.1

Microsoft Windows XP
To resolve this problem, obtain Microsoft Windows XP COM+ Hotfix Rollup Package 9. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

895200 Availability of Windows XP COM+ Hotfix Rollup Package 9

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk. After you install the appropriate COM+ hotfix rollup, follow these steps to add the required registry entry:  Obtain the Application ID of the COM+ application from the COM+ catalog. To locate the Application ID, refer to the application properties in COM+ Explorer. Start Registry Editor. Locate and then click the following key in the registry:

HKEY_CLASSES_ROOT\AppID

 On the Edit menu, click Add Value, and then add the following registry value:

Key name:  

Value name: Endpoints

Data type: REG_MULTI_SZ

Value data: ncacn_ip_tcp,0,

Notes   is the Application ID of the COM+ application that you obtained in step 1. The  that you specify in Value data must exceed 1024 and must not conflict with well-known ports that other applications on this computer use.</li> You cannot modify the ncacn_ip_tcp,0 part of this key.</li></ul> </li> Quit Registry Editor.</li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

<div class="moreinformation_section">

MORE INFORMATION
For more information about how to obtain a hotfix for Windows 2000 Datacenter Server, click the following article number to view the article in the Microsoft Knowledge Base:

265173 The Datacenter Program and Windows 2000 Datacenter Server Product

For more information about how to install multiple hotfixes with only one reboot, click the following article number to view the article in the Microsoft Knowledge Base:

296861 How to install multiple Windows updates or hotfixes with only one reboot

For more information about how to install Windows 2000 and Windows 2000 hotfixes at the same time, click the following article number to view the article in the Microsoft Knowledge Base:

249149 Installing Microsoft Windows 2000 and Windows 2000 hotfixes

Additional query words: kbWin2000preSP3COMRollup18Fix, Firewall, static port, end point

Keywords: kbbug kbdcom kbfix kbsecurity kbwin2000presp3fix kbwin2000sp3fix KB312960

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.