Cannot Start UiPath Robot Service Due To Error 1053: The Service Did Not Respond To The Start Or Control Request In A Timely Fashion.

Why is Error 1053: The service did not respond to the start or control request in a timely fashion, thrown?

Issue Description: When trying to Start or Restart the UiPath Robot service, getting the error:

  • "Windows could not start the UiPath Robot service on Local Computer.
"Error 1053: The service did not respond to the start or control request in a timely fashion."



Root Cause and Resolution:

  • Because of incorrect C:\Program Files\UiPath\Studio\uipath.config file and the parser misunderstand the resulting data.
  • Observe more details about the encountered error in the Application Event Viewer logs on the impacted Service Mode Robot machine.

  1. For example, in this case, this error is thrown in the Application Event Viewer logs:
"UiPath.Service.Host 22.10.5.0

Topshelf.ServiceBuilderException: An exception occurred creating the service: RobotNTService

---> System.TypeInitializationException: The type initializer for 'UiPath.Service.Api.Communication' threw an exception.

---> System.TypeInitializationException: The type initializer for 'UiPath.Shared.Configuration.SharedAppConfiguration' threw an exception.

---> System.Configuration.ConfigurationErrorsException: An error occurred while parsing EntityName. Line 32, position 63. (C:\Program Files\UiPath\Studio\uipath.config line 32)

---> System.Xml.XmlException: An error occurred while parsing EntityName. Line 32, position 63.

at System.Xml.XmlTextReaderImpl.Throw(Exception e)

..."

Resolution:

  • Escape the ampersand & character or check internally if a proxy script can be provided without an ampersand & character.

  • Change this line from:

3.png

  • To this line:

4.png

More details here: Escaping XML Data

  1. For example, in this case, this error is thrown in the Application Event Viewer logs:

"

UiPath.Service.Host 22.10.5.0

Topshelf.ServiceBuilderException: An exception occurred creating the service: RobotNTService

---> System.TypeInitializationException: The type initializer for 'UiPath.Service.Api.Communication' threw an exception.

---> System.TypeInitializationException: The type initializer for 'UiPath.Shared.Configuration.SharedAppConfiguration' threw an exception.

---> System.Configuration.ConfigurationErrorsException: The 'add' start tag on line 33 position 6 does not match the end tag of 'webProxySettings'. Line 34, position 3. (C:\Program Files\UiPath\Studio\uipath.config line 34)

---> System.Xml.XmlException: The 'add' start tag on line 33 position 6 does not match the end tag of 'webProxySettings'. Line 34, position 3.

at System.Xml.XmlTextReaderImpl.Throw(Exception e)

..."

Root Cause: The XML comment contains a start tag but does not contain a matching end tag.

Resolution:

  • Add an end tag that matches the start tag.

or

  • If the tag contains no inner text, such as <seealso>, specify a forward slash before the closing angle bracket.

  • Change this line from

1.png

  • To this line:

2.png

More details can be found:


----

  1. After correcting the C:\Program Files\UiPath\Studio\uipath.config file, Save the file as Administrator, from Start -> services.msc
  2. Restart the UiPath Robot service in order to apply the change.