Could not load file or assembly 'UiPath.Activities.RuntimeGovernance

When using UiActivitites such as attach browswer I am getting the following error:
Attach Browser ‘chrome.exe LinkedIn’: Could not load file or assembly ‘UiPath.Activities.RuntimeGovernance, Version=1.1.3.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies

I reinstalled studio multiple times but it did not help.

I also found the file in the packages folder:

If you have any idea to solve this bug I would appreciate it greatly.

1 Like

Hi @p.kertai

Would you mind sharing a sample project that reproduces the issue, together with your Studio/Robot version?

If you would be willing to also provide the output zip file of the image that you can find in your Start menu via a private message to me @loginerror, that would also help a lot :slight_smile:

Thank you for providing me with the extra files. Unfortunately, indicating an element from the Attach Browser activity did not cause any errors for me :confused:

Could you maybe do these steps to clean your environment a bit:

  • Close Studio
  • kill the UiPath processes in the task manager
  • clear (or simply rename) these paths with temporary cache files
    %USERPROFILE%\.nuget
    %LOCALAPPDATA%\UiPath\.cache
    %LOCALAPPDATA%\NuGet
    %LOCALAPPDATA%\Temp\NuGetScratch
    %LOCALAPPDATA%\Temp\nuget
    
  • start Studio and try again

Hopefully, Studio will re-download all dependencies and the error will be gone :crossed_fingers:

Hi @p.kertai,

Even though if you reinstall the UiPath, the system cache remains the same and may cause the same error. So, can you try to restart your system? and try to reinstall the package.

Regards,
@90s_Developer

1 Like

Clearing the cache did not help unfortunately. The error still persists.

Could you also clear / remove this location and retry then:

(I should have included that path in the previous post…)

If that doesn’t work, I would still try to play around with different versions of the UIAutomation activity package (maybe downgrading it would help here).

I managed to fix the problem by clearing the cache as you suggested and then removing and reinstalling all the dependencies.

Thank you for your assitance!

1 Like

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