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.
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.
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:
Click Start, click Run, type inetmgr, and then click OK.
Expand the name of the computer on which you want to configure application pool recycling, and then expand Application Pools.
Right-click the application pool that you want to configure, and then click Properties.
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.
For more information about how to use application pool recycling, visit the following Microsoft Web site: