Error: Debugging Failed Because Integrated Windows Authentication Is Not Enabled
Note
This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
Authentication of the user who requested debugging was prevented by an authentication error. This can occur when you try to step into a Web application or an XML Web service. One cause of this error is that integrated Windows authentication is not enabled. To enable it, follow the steps in "To enable integrated Windows authentication."
If you have enabled integrated Windows authentication and this error still appears, it is possible that this error is caused because Digest Authentication for Windows Domain Servers is enabled. In this situation you should contact with your network administrator.
To enable integrated Windows authentication
Log on to the Web server by using an administrator account.
Click Start and then click Control Panel.
In Control Panel, double-click Administrative Tools.
Double-click Internet Information Services.
Click the Web server node.
A Web Sites folder opens underneath the server name.
You can configure authentication for all Web sites or for individual Web sites. To configure authentication for all Web sites, right-click the Web Sites folder and then click Properties. To configure authentication for an individual Web site, open the Web Sites folder, right-click the individual Web site, and then click Properties.
The Properties dialog box is displayed.
Click the Directory Security tab.
In the Anonymous access and authentication control section, click Edit.
The Authentication Methods dialog box is displayed.
Under Authenticated access, select Integrated Windows authentication.
Click OK to close the Authentication Methods dialog box.
Click OK to close the Properties dialog box.
Close the Internet Information Services window.
To enable integrated Windows authentication in Windows Vista/IIS 7
Log on to the Web server by using an administrator account.
Turn on Windows Authentication and II6 Management Compatibility, if you have not previously done this, by following these steps:
Click Start, click Control Panel and then click Programs.
Under Programs and Features, click Turn Windows features on or off.
The User Access Control dialog box appears and prompts you for permission to continue.
Click Continue.
The Windows Features dialog box appears.
In the feature list, expand the Internet Information Services node.
Under Internet Information Services, expand the World Wide Web Services node.
Under World Wide Web Services, click Security.
Click Windows Authentication.
Under Internet Information Services, expand the Web Management Tools node.
Under Web Management Tools, expand the IIS 6 Management Compatibility node, and select the IIS 6 Metabase and IIS 6 Configuration Compatibility check box.
Under Web Management Tools, select IIS Management Console and Click OK.
Restart the computer for these changes to take effect.
Click Start and then, click Control Panel.
Click Classic View, and then double-click Administrative Tools.
In the Name column and double-click Internet Information Services (IIS) Manager.
In the Connections column, expand the node for your server.
A Web Sites folder opens underneath the server name.
Expand the Web Sites node and click the Web site for which you want to enable integrated Windows authentication.
The title of the center pane changes to the name of the Web site that you selected. In this pane, under the IIS heading, double-click Authentication.
The title of the pane changes to Authentication.
In the Authentication pane, in the Name column, right-click Windows Authentication and then click Enable.
Close the Internet Information Services (IIS) Manager window.
See Also
Debugging Web Applications: Errors and Troubleshooting
Microsoft Digest Authentication
Running Web Applications on Windows Vista with IIS 7.0 and Visual Studio