//
you're reading...
ASP.NET, IT-Center, Web Based

Unable to Start Debugging on the Web Server (Windows Authentication)

I hate that, and it seems that every time I (or a co-worker) gets the error “Unable to Start Debugging on the Web Server” on a machine when attempting to debug an ASP.NET project, I have to scramble to remember what to look at. Here’s a few things that has worked for me to get things working so you can debug your ASP.NET project when/if you ever get this error:

  • Make sure that IIS is configured to use Integrated Windows Authentication. Look for the checkbox on the Authentication Method dialog launched from the Directory Security tab of the site properties.
  • Make sure that HTTP Keep Alives are enabled. You’ll find that checkbox on the Web Site tab of the properties dialog, in the connections section.
  • This one is strange, but it seemed to do the trick for many out there, add http://localhost to the trusted sites in Internet Explorer. To tell the truth, this seems to be a fix for the symtoms, not actually fixing the problem itself, but if it works it works. BTW, you’ll have to uncheck the “Require server verification (https:) for all sites in this zone“ checkbox to add it as a trusted site.

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

  1. Log on to the Web server by using an administrator account.
  2. Click Start and then click Control Panel.
  3. In Control Panel, double-click Administrative Tools.
  4. Double-click Internet Information Services.
  5. Click the Web server node.A Web Sites folder opens underneath the server name.
  6. 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.
  7. Click the Directory Security tab.
  8. In the Anonymous access and authentication control section, click Edit.The Authentication Methods dialog box is displayed.
  9. Under Authenticated access, select Integrated Windows authentication.
  10. Click OK to close the Authentication Methods dialog box.
  11. Click OK to close the Properties dialog box.
  12. Close the Internet Information Services window.

To enable integrated Windows authentication in Windows Vista/IIS 7

  1. Log on to the Web server by using an administrator account.
  2. Turn on Windows Authentication and II6 Management Compatibility, if you have not previously done this, by following these steps:
    1. Click Start, click Control Panel and then click Programs.
    2. 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.
    3. Click Continue.The Windows Features dialog box appears.
    4. In the feature list, expand the Internet Information Services node.
    5. Under Internet Information Services, expand the World Wide Web Services node.
    6. Under World Wide Web Services, click Security.
    7. Click Windows Authentication.
    8. Under Internet Information Services, expand the Web Management Tools node.
    9. Under Web Management Tools, expand the IIS 6 Management Compatibility node, and select the IIS 6 Metabase and IIS 6 Configuration Compatibility check box.
    10. Under Web Management Tools, select IIS Management Console and Click OK.
    11. Restart the computer for these changes to take effect.
  3. Click Start and then, click Control Panel.
  4. Click Classic View, and then double-click Administrative Tools.
  5. In the Name column and double-click Internet Information Services (IIS) Manager.
  6. In the Connections column, expand the node for your server.A Web Sites folder opens underneath the server name.
  7. Expand the Web Sites node and click the Web site for which you want to enable integrated Windows authentication.
  8. 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.
  9. In the Authentication pane, in the Name column, right-click Windows Authentication and then click Enable.
  10. Close the Internet Information Services (IIS) Manager window.

see also http://mvolo.com/blogs/serverside/archive/2006/12/28/Fix-problems-with-Visual-Studio-F5-debugging-of-ASP.NET-applications-on-IIS7-Vista.aspx

About berbagisolusi

Berbagi merupakan sebuah bentuk simbol keikhlasan untuk membantu dan menolong, sedangkan solusi adalah cara menyelesaikan masalah. Setiap manusia pasti mengalami masalah, tetapi kita tidak perlu mengalami masalah yang sama jika orang lain pernah mengalami dan kita tahu hal tersebut.

Discussion

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 9 other followers

December 2011
M T W T F S S
« Nov   Jan »
 1234
567891011
12131415161718
19202122232425
262728293031  

Archives

Web Statistic

Blog Stats

  • 149,580 hits
%d bloggers like this: