Troubleshooting: 401 - Unauthorized: Access is denied due to invalid credentials.
When you try to access the Microsoft Dynamics NAV Web client, you get the following error:
401 - Unauthorized: Access is denied due to invalid credentials. You do not have permission to view this directory or page using the credentials that you supplied.
Resolution
This error typically occurs when authentication is not configured correctly between the Microsoft Dynamics NAV Web Server components (Microsoft Dynamics NAV Web client site on IIS) and Microsoft Dynamics NAV Server. To resolve this error, verify that the following conditions are met:
The credential type to use for authenticating users is configured correctly in Microsoft Dynamics NAV Server and in the web.config file of the Microsoft Dynamics NAV Web client site on IIS.
For example, if the Microsoft Dynamics NAV Web client site is configured for Windows credential type, the Microsoft Dynamics NAV Server must also be configured for Windows credential type.
The correct authentication method is enabled on the Microsoft Dynamics NAV Web client site on IIS.
For the Windows credential type, enable Windows authentication.
For the UserName and NavUserPassword credential types, enable both Forms authentication and Anonymous authentication.
For Windows authentication, the correct authentication providers are configured on the Microsoft Dynamics NAV Web client site on IIS.
For step-by-step instructions about how change or verify these settings, see the Configuring the Credential Type on the Microsoft Dynamics NAV Web Client Website.
See Also
Other Resources
Deploying the Microsoft Dynamics NAV Web Client
Troubleshooting the Microsoft Dynamics NAV Web Client Installation
How to: Install Microsoft Dynamics NAV Web Client