Microsoft Knowledge Base Email Alertz

You receive HTTP Error 401 error messages, and you intermittently cannot connect to a Web site that is hosted on IIS 6.0

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 902160 - Last Review: December 3, 2007 - Revision: 1.3

You receive "HTTP Error 401" error messages, and you intermittently cannot connect to a Web site that is hosted on IIS 6.0

SYMPTOMS

You intermittently cannot connect to a Web site that is hosted on Microsoft Internet Information Services (IIS) 6. When this behavior occurs, you may receive an error message that is similar to the following:
HTTP Error 401 - Unauthorized: Access is denied due to invalid credentials.
This behavior occurs if the following conditions are true:
  • The Web site that you try to view uses Integrated Windows authentication.
  • The application pool for the Web site recycles during the authentication process.

CAUSE

The NTLM protocol that is used for Integrated Windows authentication requires a two-step process to authenticate clients. The behavior that is mentioned in the "Symptoms" section occurs when the following conditions are true:
  • The application pool recycles after the first step of the Integrated Windows authentication process.
  • However, the application pool recycles before the second step of the Integrated Windows authentication process.

WORKAROUND

To work around this behavior and to reduce the frequency of these error messages, configure the application pool to recycle less frequently. To configure application pool recycling, follow these steps:
  1. Click Start, click Run, type inetmgr, and then click OK.
  2. Expand the name of the computer on which you want to configure application pool recycling, and then expand Application Pools.
  3. Right-click the application pool that you want to configure, and then click Properties.
  4. On the Recycle tab, configure one of the metrics so that IIS recycles less frequently.

    Note IIS 6 application pools support several metrics. These metrics include the time elapsed, the number of requests, and the specified time to recycle an application pool. If an application pool has a metric that causes the application pool to recycle frequently, you will experience this issue more frequently.
  5. Click OK.

MORE INFORMATION

For more information about how to use application pool recycling, visit the following Microsoft Web site:
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/18b3a3cd-ff5f-4a48-bc63-810be04b131d.mspx (http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/18b3a3cd-ff5f-4a48-bc63-810be04b131d.mspx)
For more information about how IIS authenticates browser clients by using Windows Integrated authentication, click the following article number to view the article in the Microsoft Knowledge Base:
264921  (http://kbalertz.com/Feedback.aspx?kbNumber=264921/ ) How IIS authenticates browser clients

APPLIES TO
  • Microsoft Internet Information Services 6.0
Keywords: 
kbtshoot kbprb KB902160
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate