search cancel

Receiving messages about: Failed to handle web service request: RegisterClient. Access is denied

book

Article ID: 175335

calendar_today

Updated On:

Products

IT Management Suite Task Server

Issue/Introduction

The customer has recently added an ACC (Altiris Connectivity Credentials) account or changed the password for it. After that, the client machines and Task Servers can't register to a Task Server.

Examples like the following can be seen on the agent logs:

  • Example 1:
    • Client Task Server failed to complete registration. Will be retried in 120 seconds.
    • Server Refresh Manager startup failed.
  • Example 2:
    • http://SMPServer.domain.com/Altiris/TaskManagement/ClientTask/ExecTSMethod.aspx?clientTaskServerGuid=2c0e4f4f-2ddd-4fbf-9f8a-4fffc56b9f37
    • The remote server returned an error: (401) Unauthorized.
  • Example 3:
    • Failed to handle web service request:
    • RegisterClient Access is denied.
  • Example 4:
    • NotificationServerWebConnection.PostToNotificationServer().
    • The remote server returned an error: (401) Unauthorized.
  • Example 5: Task Execution Engine inner loop cycle failed.
    • The remote server returned an error: (401) Unauthorized.
    • OR sequences like:
      •  Loaded connection settings: resource guid=2c0e4f4f-2ddd-4fbf-9f8a-4fffc56b9f37, user name=svcsmpACC
      • Checking "http://SMPserver.domain.com/Altiris/TaskManagement/ClientTask/Authenticate.aspx" with credentials domain: "" username: "svcsmpACC"
      • NotificationServerWebConnection.PostToNotificationServer()
        • The remote server returned an error: (401) Unauthorized.
      • Failed to perform re-register.
        • Unauthorized

http://SMPserver.domain.com/Altiris/TaskManagement/ClientTask/ExecTSMethod.aspx?clientTaskServerGuid=2c0e4f4f-2ddd-4fbf-9f8a-4fffc56b9f37
The remote server returned an error: (401) Unauthorized.
   [System.Net.WebException @ System]
   at System.Net.HttpWebRequest.GetResponse()
   at Altiris.DotNetLib.Helpers.AtrsHttpOps.Execute[T](Func`2 action, String url, ICredentials credentials, Boolean isPost, Int32 timeout)

 

Failed to handle web service request: RegisterClient
Access is denied
   [System.ComponentModel.Win32Exception @ mscorlib]

 

NotificationServerWebConnection.PostToNotificationServer()

The remote server returned an error: (401) Unauthorized.
   [System.Net.WebException @ System]
   at System.Net.HttpWebRequest.GetResponse()
   at Altiris.DotNetLib.Helpers.AtrsHttpOps.Execute[T](Func`2 action, String url, ICredentials credentials, Boolean isPost, Int32 timeout)
   at Altiris.ClientTask.Server.Communication.NotificationServerWebConnection.PostToNotificationServer(String url, ICredentials nsCredentials, NSWebConnectionBuildRequestStreamDelegate requestStreamDelegate, Int32 nMaxAttempts, Int32 nTimeout)

 

Task Execution Engine inner loop cycle failed.

The remote server returned an error: (401) Unauthorized.
   [System.Net.WebException @ System]
   at System.Net.HttpWebRequest.GetResponse()
   at Altiris.DotNetLib.Helpers.AtrsHttpOps.Execute[T](Func`2 action, String url, ICredentials credentials, Boolean isPost, Int32 timeout)
   at Altiris.ClientTask.Server.Communication.NotificationServerWebConnection.PostToNotificationServer(String url, ICredentials nsCredentials, NSWebConnectionBuildRequestStreamDelegate requestStreamDelegate, Int32 nMaxAttempts, Int32 nTimeout)
   at Altiris.ClientTask.Server.Communication.NotificationServerWebConnection.PostToNotificationServer(String url, NSWebConnectionBuildRequestStreamDelegate requestStreamDelegate, Stream& respStream, StreamReader& streamRdr, XmlTextReader& xmlTxtRdr, Boolean& dataEncryped, Int32 nMaxAttempts, Int32 nTimeout)
   at Altiris.ClientTask.Server.Communication.NotificationServerWebConnection.ExecuteMethodOnNs(String methodName, String xmlParameters)
   at Altiris.ClientTask.Server.Communication.NotificationServerWebConnection.GetClientTaskRequests(Guid clientTaskServerGuid, String requestXml)
   at Altiris.ClientTask.Server.Execution.ClientTaskExecutionEngine.GetDatabaseWorkToDo(String requestXml)
   at Altiris.TaskManagement.Common.Execution.Engine.TaskExecutionEngine.ProcessWorkToDo()
   at Altiris.TaskManagement.Common.Execution.Engine.TaskExecutionEngine.OnProcess()
   at Altiris.TaskManagement.Common.Execution.Engine.TaskExecutionEngine.RunTaskExecutionEngineLoop()

 

 Loaded connection settings: resource guid=2c0e4f4f-2ddd-4fbf-9f8a-4fffc56b9f37, user name=svcsmpACC

 

Checking "http://SMPserver.domain.com/Altiris/TaskManagement/ClientTask/Authenticate.aspx" with credentials domain: "" username: "svcsmpACC"

 

NotificationServerWebConnection.PostToNotificationServer()
The remote server returned an error: (401) Unauthorized.
   [System.Net.WebException @ System]
   at System.Net.HttpWebRequest.GetResponse()
   at Altiris.DotNetLib.Helpers.AtrsHttpOps.Execute[T](Func`2 action, String url, ICredentials credentials, Boolean isPost, Int32 timeout)
   at Altiris.ClientTask.Server.Communication.NotificationServerWebConnection.PostToNotificationServer(String url, ICredentials nsCredentials, NSWebConnectionBuildRequestStreamDelegate requestStreamDelegate, Int32 nMaxAttempts, Int32 nTimeout)

 

Failed to perform re-register.
Unauthorized
   [System.Web.HttpException @ Altiris.ClientTask.Server]
   at Altiris.ClientTask.Server.Communication.NotificationServerWebConnection.ValidateCredentials(String clientTaskUrl, NetworkCredential credentials)
   at Altiris.ClientTask.Server.ClientTaskServer.RegisterTaskServer(Version taskServerVersion)
   at Altiris.ClientTask.Server.ClientTaskServer.ReRegister(Version taskServerVersion)

Environment

  • ITMS
    • 8.1
    • 8.5

Cause

The ACC account has been locked.

Resolution

  • Verify that your ACC account is not locked.
  • Verify that you have the proper places configured for ACC usage. Refer to TECH246961 "Unable to register to task server".