Error message when you try to access the Microsoft Dynamics CRM Web site: "You are not authorized to view this page" (917818)
The information in this article applies to:
SYMPTOMSWhen 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.
CAUSEThis 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.
RESOLUTIONTo 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 Microsoft CRM v3.0, 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:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM - Click website, and then note the value in the Value data field.
Note The value resembles "/LM/W3SVC/1." The last number is supposed to be the same as the Web site identifier that you noted in step 3.
Configure IIS to use Kerberos authentication for the Microsoft Dynamics CRM Web site- Click Start, click Run, type cmd, and then click OK.
- At the command prompt, type the following command, and then press Enter:
C:\Inetpub\AdminScripts\adsutil.vbs get w3svc/1/NTAuthenticationProviders Note In this command, 1 represents the value that you determined in the "Determine the identifier that the Microsoft Dynamics CRM Web site uses" section.
The result states that the authentication is not set at this level or that the authentication is set to NTAuthenticationProviders: (STRING) "NTLM." Therefore, you have to set Kerberos authentication. - At the command prompt, type the following command, and then press Enter:
C:\Inetpub\AdminScripts\adsutil.vbs set w3svc/1/NTAuthenticationProviders "Negotiate,NTLM" Note In this command, 1 represents the value that you determined in the "Determine the identifier that the Microsoft Dynamics CRM Web site uses" section. - 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/1/NTAuthenticationProviders Note In this command, 1 represents the value that you determined in the "Determine the identifier that the Microsoft Dynamics CRM Web site uses" section.
The result is as follows:NTAuthenticationProviders: (STRING) "Negotiate,NTLM" - Restart the Microsoft Dynamics CRM server.
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.
Modification Type: | Major | Last Reviewed: | 8/16/2006 |
---|
Keywords: | kberrmsg kbtshoot kbMBSMigrate kbprb kbMBSadministration KB917818 kbAudEndUser kbAudKnowledgeWorker |
---|
|