Error When Trying To Connect Studio To Orchestrator "An Error Has Occurred"

Error fix for "An Error Has Occurred" thrown when trying to connect Studio to Orchestrator.

Error Message:

Not able to connect new machines to Orchestrator.Error message in Studio :"An error has occurred ". Details of the error : "RemoteException wrapping UiPath.Service.Orchestrator.Clients.OrchestratorHttpException: An error has occurred. at UiPath.Service.Orchestrator.OrchestratorClientExtensions.EnsureOrchestratorStatusCodeAsyncd__8.MoveNext()— End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Service.Orchestrator.Clients.OrchestratorBaseClient;InternalRequestAsync_51.MoveNext()--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Service.Orchestrator.Clients.OrchestratorBaseClient-RequestAsync-d__4.MoveNext()--- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at UiPath.Service.Orchestrator.Clients.OrchestratorBaseClient.<RequestAsync-d__31.MoveNext()— End of stack trace from previous location where exception was thrown — at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)" In IIS logs the error found : Orchestrator endpoint /odata/Settings/UiPath.Server.Configuration.OData.GetServicesSettings returns internal server error 500 "


Root Cause:
Windows Authentication is enabled in UiPath.Orchestrator.dll.config files, but is disabled in IIS.


Resolution:

  • Enable Windows Authentication with HTTP 401 challenge in IIS settings.

Refer documentation Configuring SSO Active Directory in order to make correct setting for Windows Authentication in IIS.