The Debug in Zone feature appears to remain enabled after you disable the Visual Studio hosting process in Visual Studio 2005

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

SYMPTOMS

Consider the following scenario. You create a solution in Microsoft Visual Studio 2005. You enable the Debug in Zone feature on the Security tab for the project properties. You disable the Visual Studio hosting process on the Debug tab for the project properties. You press F5 to debug the solution. You receive an error message that resembles the following:
The security debugging option is set but it requires the Visual Studio hosting process which is unavailable in this debugging configuration. The security debugging option will be disabled. This option may be re-enabled in the Security property page. The debugging session will continue without security debugging.
In this scenario, when you click OK, the Debug in Zone feature is disabled. However, when you click the Security tab for the project properties, the Debug in Zone feature appears to be enabled.

CAUSE

The Debug in Zone feature requires the Visual Studio hosting process. When you enable the Debug in Zone feature and you disable the Visual Studio hosting process, Visual Studio 2005 disables the Debug in Zone feature.

However, Visual Studio 2005 does not disable the Debug in Zone feature by clearing the Enable ClickOnce Security Settings check box on the Security tab for the project properties. This check box must remain selected to make sure that manifest data is generated correctly for ClickOnce application deployment. The Debug in Zone feature may appear to be enabled. However, it is not enabled.

Instead, Visual Studio 2005 disables the Debug in Zone feature by clearing the Debug this application with the selected permission set check box in the advanced properties on the Security tab.

RESOLUTION

To use the Debug in Zone feature, you must reenable the Visual Studio hosting process. To reenable the Visual Studio hosting process, follow these steps:
  1. Start Visual Studio 2005.
  2. On the File menu, point to Open, and then click Project/Solution.
  3. Locate the project that you want to open, and then click Open.
  4. On the Project menu, click Project Properties.

    Note Project represents the name of the project.
  5. Click the Debug tab.
  6. In the Enable Debuggers group, click to select the Enable the Visual Studio hosting process check box.
After you enable the Visual Studio hosting process, you can reenable the Debug in Zone feature. To reenable the Debug in Zone feature after it has been disabled by Visual Studio 2005, follow these steps:
  1. Start Visual Studio 2005.
  2. On the File menu, point to Open, and then click Project/Solution.
  3. Locate the project that you want to open, and then click Open.
  4. On the Project menu, click Project Properties.

    Note Project represents the name of the project.
  5. Click the Security tab.
  6. Click to select the Enable ClickOnce Security Settings check box, and then click to select the This is a partial trust application check box.
  7. Click Advanced.
  8. Click to select the Debug this application with the selected permission set check box, and then click OK.

STATUS

This behavior is by design.

MORE INFORMATION

For more information about debugging and the Visual Studio hosting process, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/ms242202.aspx

Properties

Article ID: 919829 - Last Review: July 28, 2006 - Revision: 1.0
APPLIES TO
  • Microsoft Visual Studio 2005 Express Edition
  • Microsoft Visual Studio 2005 Professional Edition
  • Microsoft Visual Studio 2005 Standard Edition
  • Microsoft Visual Studio 2005 Team System Architect Edition
  • Microsoft Visual Studio 2005 Team System Developer Edition
  • Microsoft Visual Studio 2005 Team Foundation
  • Microsoft Visual Studio 2005 Team System Test Edition
Keywords: 
kbtshoot kbprb KB919829

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