Error "HTTP Error 401.2 - Unauthorized. You are not authorized to view this page due to invalid authentication headers."


Issue
When you connect to XIA Automation Server, you receive an error “HTTP Error 401.2 - Unauthorized. You are not authorized to view this page due to invalid authentication headers.”


The user account you are connected with is known to have the appropriate permissions.



Cause

This is due to problems with the configuration of the authentication settings within IIS



Solution

  • Open IIS Manager then select the XIA Automation virtual directory and double click the Authentication icon.




  • Ensure that Windows Authentication is enabled then right click it and select Providers



  • Ensure that both Negotiate and NTLM are in the list of Enabled Providers.
    If they are not listed select them from the available providers drop down list and click add.