Please resolve this issue :Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=8.0.0.0, Culture=neutral, PublicKeyToken='. The system cannot find the file specified

Hi,
I accidentally upgraded the UiAutomation dependency to version 25 in one of my production-grade projects. Since then, I’ve been encountering the following error & not able to execute my process:

Could not load file or assembly ‘System.Diagnostics.DiagnosticSource, Version=8.0.0.0, Culture=neutral, PublicKeyToken=’. The system cannot find the file specified.

Unfortunately, I’m unable to downgrade the package because certain activities in the workflow depend on the Healing Agent, which is supported only in newer versions.

Hi need help,
I accidentally upgraded the UiAutomation dependency to version 25 in one of my production-grade projects. Since then, I’ve been encountering the following error & not able to execute my process:

Could not load file or assembly ‘System.Diagnostics.DiagnosticSource, Version=8.0.0.0, Culture=neutral, PublicKeyToken=’. The system cannot find the file specified.

Unfortunately, I’m unable to downgrade the package because certain activities in the workflow depend on the Healing Agent, which is supported only in newer versions.

Thanks in advance.

Hi @Eshu_Dhiman

the error happens because uiautomation 25 requires .net 8 assemblies that might be missing. to fix it, update your robot, studio, and .net runtime to versions that support .net 8. if you can’t downgrade because of healing agent.

Happy Automation

Hi @Eshu_Dhiman

Please update your machine’s .net runtime to include .net 8 .

Happy Automation

Hi @Eshu_Dhiman

Try following steps

  1. Install .NET 8 Runtime:
  1. Restart UiPath Studio after installation.
  2. Verify Dependencies:
  • In your UiPath project, go to Manage Packages and ensure that all dependencies are compatible with .NET 8.
  • If you’re using custom libraries or older dependencies, they may need to be updated or replaced.
  1. Install .NET 8 Runtime:
  1. Restart UiPath Studio after installation.
  2. Verify Dependencies:
  • In your UiPath project, go to Manage Packages and ensure that all dependencies are compatible with .NET 8.
  • If you’re using custom libraries or older dependencies, they may need to be updated or replaced.

@Eshu_Dhiman

Hi thankyou all for the replies. I have upgraded the studio version to 2024, the process was built in studio 2023. It was solved.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.