Why is Error 1053: The service did not respond to the start or control request in a timely fashion, thrown?
Issue Description
While attempting to start or reboot the UiPath Robot service, the following errors are received:
"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."
"Windows could not start the UiPath Robot service on Local Computer. Error 1064: An exception occurred In the service when handling the control request."
Root Cause
- The issue arose due to a incorrect configuration values located at
C:\Program Files\UiPath\Studio\uipath.config
, which caused the parser to misinterpret the resultant data.- For Example: The XML comment contains a start tag but does not contain a matching end tag.
- Incompatible .Net Framework installed on Robot Machine
- If the Robot Service is taking longer than the defined timeframe
Resolution
For Root Cause #1
For example, in this case, this error is thrown in the Application Event Viewer logs for (C:\Program Files\UiPath\Studio\uipath.config line 32):
"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:
- To this line:
More details here: Escaping XML Data.
For example, in this case, this error is thrown in the Application Event Viewer logs for (C:\Program Files\UiPath\Studio\uipath.config line 34):
"
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)
…"
Resolution:
- Add an end tag that matches the start tag.
or
- If the tag contains no inner text, such as , specify a forward slash before the closing angle bracket.
- Change this line from
- To this line:
For Root Cause #2
UiPath Robot service utilizes .NET Framework. Ensure the latest version of .NET Framework is installed.
For Root Cause #3
-
Press Win+R and type 'Regedit'
-
Navigate to 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control'
-
Look for the 'ServicesPipeTimeout' entry
-
If it doesn't exist, create a new DWORD value with that name
-
Set the value to 180000 (in decimal)
Important:
- After correcting the
C:\Program Files\UiPath\Studio\uipath.config
file, Save the file as Administrator, - Search for
services.msc
in Windows Start Menu and restart the UiPath Robot service to apply the change.
More details can be found below:
- XML documentation parse error: Start tag '' doesn't have a matching end tag
- Redirecting Robots Through A Proxy Server: Editing The UiPath.config File