Could not start executor. Unable to find an entry point named 'StartProcessUsingToken' in DLL 'UiPath.Session.dll'

How to resolve could not start executor. Unable to find an entry point named 'StartProcessUsingToken' in DLL 'UiPath.Session.dll'

Issue Description:

When attempting to execute a Job on the Robot machine, the Robot fails with the below-specified error message.

Error Message:

Could not start executor. Unable to find an entry point named 'StartProcessUsingToken' in DLL 'UiPath.Session.dll'

Root Cause:

The error surfaces when the Robot attempts to call a new method, StartProcessUsingToken, on a .dll file where the method doesn't exist. This happens when residual UiPath.Session.dll from prior UiPath Studio installations are utilized by the UiPath Robot service.

Resolutions:

Approach #1:

Follow the steps below:

  1. Close All UiPath Processes: Terminate all running UiPath processes, including Studio and Robot.

  2. Stop UiPath Robot Service: Go to services (access it by typing services.msc in your search bar), find UiPath Robot, Select UiPath Robot and click stop.
    image.png

  3. Locate UiPath.Session.dll file: Navigate to the Studio installation directory ("C:\Program Files\UiPath\Studio") and search for the UiPath.Session.dll file.

  4. Remove the Oldest File: If there are multiple UiPath.Session.dll files present in the directory, delete the oldest one.
    image.png

Approach #2:

Should approach #1 not resolve the problem, a clean removal and reinstallation of UiPath Studio is recommended. Follow the steps in this KB Article - How to Perform A Clean Studio Reinstallation?


By following either of these approaches, you should be able to rectify the issues associated with residual UiPath.Session.dll from previous UiPath installations.