Microsoft KB Archive/322032

= PRB: 401 Error Message When You Use Application Center Test with NTLM Authentication =

Article ID: 322032

Article Last Modified on 3/7/2004

-

APPLIES TO


 * Microsoft Application Center Test, Developer Edition

-



This article was previously published under Q322032



SYMPTOMS
After you run a successful test in Application Center Test, you may not be able to view the test results, and you may receive the following error message during each attempt to do so:

401 - The requested resource requires user authentication



CAUSE
HTTP version 1.0 does not support &quot;keep-alive&quot; connections. These type of connections are required to run a test against Integrated Windows authentication.



RESOLUTION
To work around this behavior, modify the script to use HTTP 1.1. Follow these steps to record and playback a test by using NTLM authentication:  Turn on basic authentication on the Web site. Record a dynamic script by using Application Center Test. Turn on integrated authentication on the Web site.  Comment out all of the lines in your recorded script that contain: oHeaders.Add &quot;Authorization&quot;, &quot;Basic..... &quot;  Add valid local or domain users. To do this, follow these steps:  In the right pane of the ACT console, right-click the Users node to create a new users group, and then click Add.</li> A user group that is named New Users Group is created. To rename this group, right-click New Users Group, and then click Rename.</li> Click the new users group. You see the User Name column and the Password column in the right pane.</li> Add user name and password pairs. For domain accounts, use the  format. For computer-specific accounts, use the  format. You can add as many accounts as you need in your test if the accounts are valid accounts that have user rights to the Web site in question.</li></ol> </li> Associate the new users group with the test or tests, that will use these accounts. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Right-click a test in the left pane, and then click Properties.</li> Click the Users tab, and then click Specify Users.</li> Click to select the check boxes for all user groups in the list that you want to use with this test, and then click OK. ACT will automatically use the credentials for each user when it is challenged by the Web server for authentication.</li></ol> </li>  For each request, change the following line in the script oRequest.HTTPVersion = &quot;HTTP/1.0&quot; to oRequest.HTTPVersion = &quot;HTTP/1.1&quot; </li> Play back the script.</li></ol>

<div class="status_section">

STATUS
This behavior is by design.

Additional query words: act

Keywords: kberrmsg kbprb KB322032

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.