Microsoft KB Archive/919823

= You may receive an error message when you try to connect to an instance of the Remote Debugging Monitor in Visual Studio 2005 =

Article ID: 919823

Article Last Modified on 11/22/2007

-

APPLIES TO


 * Microsoft Visual Studio 2005 Standard Edition
 * Microsoft Visual Studio 2005 Professional Edition

-





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
When you try to connect to an instance of the Remote Debugging Monitor in Microsoft Visual Studio 2005, you may receive an error message that resembles the following:

Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named. The Visual Studio debugger cannot connect to the remote computer. An RPC policy is enabled on the local computer that prevents remote debugging. Please see Help for assistance.

When you click Help, you obtain a document that states that you need to disable the Restrictions for Unauthenticated RPC clients policy setting. However, the problem is not resolved when you disable this policy setting.



CAUSE
This problem occurs because a remote procedure call (RPC) policy that prevents debugging is enabled on the local computer.

Note The  registry key is a new addition for the RPC service in Microsoft Windows XP Service Pack 2 (SP2). This problem occurs when you enable the RPC service on the local computer that is running Windows XP SP2.



WORKAROUND
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.

To work around this problem, follow these steps:  Click Start, click Run, type regedit, and then click OK. Locate the following registry subkey:

 Right-click RestrictRemoteClients, and then click Delete. In the Confirm Value Delete dialog box, click Yes. On the File menu, click Exit. Restart the computer for the change to take effect.</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 the  registry key, visit the following Microsoft Web site:

http://technet.microsoft.com/en-us/library/209d02c4-877c-4128-8e22-30bcd4aae6d3.aspx

Additional query words: RestrictRemoteClients C# Remote debug

Keywords: kbtshoot kbbug kbprb KB919823

-

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

© Microsoft Corporation. All rights reserved.