Microsoft KB Archive/917818

= Error message when you try to access the Microsoft Dynamics CRM Web site: &quot;You are not authorized to view this page&quot; =

Article ID: 917818

Article Last Modified on 1/4/2008

-

APPLIES TO


 * Microsoft Dynamics CRM 4.0
 * Microsoft Dynamics CRM 3.0

-





SYMPTOMS
When you try to access the Microsoft Dynamics CRM Web site, you are prompted for domain credentials three times. Then, you receive the following error message:

You are not authorized to view this page.

HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials.



CAUSE
This problem may occur when either of the following conditions is true:
 * The Microsoft Internet Information Services (IIS) authentication for the Microsoft Dynamics CRM Web site is not configured to use Kerberos authentication.
 * The Microsoft Dynamics CRM Web site is configured to use host headers.



RESOLUTION
To resolve this problem, follow these steps.

Determine the identifier that the Microsoft Dynamics CRM Web site uses  On the Microsoft Dynamics CRM server, click Start, click Administrative Tools, and then click Internet Information Services (IIS) Manager. Expand the Microsoft Dynamics CRM computer name, and then click Web Sites. Click the Microsoft Dynamics CRM Web site, and then note the value in the Identifier column.

Note If you installed Microsoft Dynamics CRM on the default Web site, this value is 1. Verify the Microsoft Dynamics CRM Web site identifier. To do this, follow these steps:  Click Start, click Run, type regedit, and then click OK. Locate the following registry subkey:

</li> Click website, and then note the value in the Value data field.

Note The value resembles &quot;/LM/W3SVC/1.&quot; The last number is supposed to be the same as the Web site identifier that you noted in step 3.</li></ol> </li></ol>

Configure IIS to use Kerberos authentication for the Microsoft Dynamics CRM Web site <ol> Click Start, click Run, type cmd, and then click OK.</li> At the command prompt, type the following command, and then press Enter:

C:\Inetpub\AdminScripts\adsutil.vbs get w3svc/ /NTAuthenticationProviders

Note In this command,  represents the value that you determined in the &quot;Determine the identifier that the Microsoft Dynamics CRM Web site uses&quot; section.

The result states that the authentication is not set at this level or that the authentication is set to NTAuthenticationProviders: (STRING) &quot;NTLM.&quot; Therefore, you have to set Kerberos authentication.</li> At the command prompt, type the following command, and then press Enter:

C:\Inetpub\AdminScripts\adsutil.vbs set w3svc/ /NTAuthenticationProviders &quot;Negotiate,NTLM&quot;

Note In this command,  represents the value that you determined in the &quot;Determine the identifier that the Microsoft Dynamics CRM Web site uses&quot; section.</li> To verify that Kerberos authentication is set correctly, type the following command at the command prompt, and then press Enter:

C:\Inetpub\AdminScripts\adsutil.vbs get w3svc/ /NTAuthenticationProviders

Note In this command,  represents the value that you determined in the &quot;Determine the identifier that the Microsoft Dynamics CRM Web site uses&quot; section.

The result is as follows:

<pre class="fixed_text">NTAuthenticationProviders: (STRING) &quot;Negotiate,NTLM&quot;

</li> Restart the Microsoft Dynamics CRM server.</li></ol>

Note You can use a host header to access the Microsoft Dynamics CRM Web site. If you do this, you must also follow the instructions in this Microsoft Knowledge Base article to resolve the problem.

Keywords: kbmbscrm40 kberrmsg kbtshoot kbmbsmigrate kbprb kbmbsadministration KB917818

-

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

© Microsoft Corporation. All rights reserved.