Monday, October 16, 2006

IIS Extended Logging Properties

Countless times, the .NET exception, The request failed with HTTP status 401: Access Denied dumbfounds developers. To determine under what user is trying to access a resource extend the default logging available in Internet Information Services (IIS).

  1. Right click on the Web Site you want to manage.
  2. Click Properties in the Enable Logging panel of the Web Site tab.

    Web Site Properties

  3. Click the Extended Properties tab and check the User Name (cs-username) checkbox under Extended Properties.

    Extended Properties

Once the User Name is checked, the the windows user who is accessing the resource will be logged as below.

02:40:00 domain\username W3SVC1 AUHDQL99 POST /TestAuthentication/Default.aspx 500

1 comment:

Anonymous said...

"HTTP status 401: Access Denied dumbfounds developers."

Neal and Henry at least. :D