Error in the packages

Hello,

I’m new here and recently encountered an issue while working with a robot. My coworkers and I have been unable to resolve it.

The problem started the next day while working on my virtual machine. All activities began showing errors — I couldn’t run, debug, or locate them in the Activities panel. I ensured that all packages were up to date, but UiPath still reported that the activities did not exist.

Interestingly, when I open the same project on my personal machine, everything works without errors. Both the virtual machine and my personal machine are running the same UiPath version. This issue occurs in both Legacy and Windows versions.

Any insights or suggestions would be greatly appreciated.
Thank you.

I tried:

  • Deleted json and open new project
  • Deleted json and install all packages in my personal machine
  • Deleted cache and packages in “%userprofile%.nuget\packages” and “%localappdata%\UiPath.cache”
  • Repair dependecies
  • Tried to replace the old activities with new ones but i cant find the activities
  • Downgrade the packages versions and/or use “Lowest applicable version”
  • Tried creating a copy of my project delete de json and install the packages on my machine

Simple activities like assigns or logs dont work even with the UiPath.System.Activities updated.

This is my personal machine and VM Studio versions, Studio 2023.4.5 Enterprise License.

@Ferreira,

Make sure your VM machine is having internet access to restore the packages.

it does. both have internet connection

@Ferreira,

Check this thread.

@Ferreira

Welcome to the community

could be that the packages are corrupted…

go to this location C:\users\<Username>\.nuget and delete packages folder and reopen the project

cheers

i tried and added the lines to the NuGet.config, restarted the UiPath service robot and deleted the packages. Still got the problem

yeah, something is wrong with the UiPath.System.Activities because the robot cant find simple activities like logs and assigns. I tried what you said but no luck. Still the same issue.

Check following and if the issue still exist - I would recommend to raise a ticket to UiPath

  1. Check for Missing Dependencies: Ensure that all dependencies required by your project are installed on the virtual machine. Sometimes, certain dependencies might be missing or not properly installed.
  2. Verify Project Settings: Compare the project settings on your personal machine and the virtual machine. Ensure that all settings, including the project.json file, are identical.
  3. Check for Network Issues: Sometimes, network issues can cause problems with downloading or accessing packages. Ensure that the virtual machine has a stable internet connection and can access the necessary package sources.
  4. Reinstall UiPath Studio: If the issue persists, consider reinstalling UiPath Studio on the virtual machine. This can help resolve any potential installation issues.
  5. Check for User Permissions: Ensure that the user account on the virtual machine has the necessary permissions to access and modify the project files and packages.
  6. Compare Environment Variables: Check the environment variables on both machines to ensure they are configured correctly and consistently.
  7. Consult UiPath Logs: Review the UiPath logs for any error messages or warnings that might provide more insight into the issue. The logs can be found in the %localappdata%\UiPath\Logs directory.

@Ferreira

As you are on personal machine tyr to turn off the firewall and check if the issue resolves if so some ports or addresses might be blocked and it is causing the issue

cheers

but the problem is not on my personal machine, is on the virtual machine and i cant turn off the firewall in the VM because i dont have the permissions since is the machine and VM from my company.

@Ferreira

sry i miss read this

please give this to nertwork team and ask them to unlock

cheers

cheers

I think this solved almost all the problems, but now this package doenst work UiPath.Mail.Activities. I tried to reinstall the mail packages, downgrade versions and use “Lowest applicable version”.
And any custom library.
I cant install them and sometimes i cant find them.
Do you guys have any idea how can i solve this? or is probably the same problem but with the “links” of this packages?

@Ferreira

Glad it helped

Can you open the logs and show the error

may be your org might have ops policies set as well

and for custom libraries the feeds would different you might need to add them under manage packages

also if automation ops is enabled they might control with you not installing few packages as well

cheers

I took a print from the 4 logs i got.

@Ferreira

Did you check the time stamp properly…as the errors does not relate

also what version are the packages you are trying to install are developed on …based on view models error looks like on 22.4 or 22.10

cheers

Sorry mb, i tried to show all the logs but i just made things worse and confusing. I tried to install the custom library again and i got this in the logs.

09:02:50.9985 => [ERROR] [UiPath.Studio.App.Logging.OutputLogger] [46] Cannot load assembly: C:\Users\durpa.nuget\packages\UiPath.mail.activities\1.23.10\lib/net6.0-windows7.0/UiPath.Mail.Activities.dll : System.IO.FileNotFoundException: Could not load file or assembly ‘UiPath.Platform, Version=24.2.0.0, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified.
File name: ‘UiPath.Platform, Version=24.2.0.0, Culture=neutral, PublicKeyToken=null’
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.AddAssemblyInternal(Assembly assembly, String path)
at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.<>c__DisplayClass15_0.b__0(Tuple2 range) 09:02:50.9999 => [ERROR] [UiPath.Studio.App.Logging.OutputLogger] [46] Cannot load assembly: C:\Users\durpa\.nuget\packages\uipath.system.activities.runtime.windows\24.10.4\lib/net6.0-windows7.0/UiPath.System.Activities.dll : System.IO.FileNotFoundException: Could not load file or assembly 'UiPath.Platform, Version=24.10.3.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified. File name: 'UiPath.Platform, Version=24.10.3.0, Culture=neutral, PublicKeyToken=null' at System.Reflection.RuntimeAssembly.GetExportedTypes() at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.AddAssemblyInternal(Assembly assembly, String path) at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.<>c__DisplayClass15_0.<ProcessAssemblies>b__0(Tuple2 range)
09:02:51.0007 => [ERROR] [UiPath.Studio.App.Logging.OutputLogger] [46] Cannot load assembly: C:\Users\durpa.nuget\packages\UiPath.uiautomation.activities.runtime\24.10.2\lib/net6.0-windows7.0/UiPath.CV.Activities.dll : System.IO.FileNotFoundException: Could not load file or assembly ‘UiPath.Platform, Version=24.10.3.0, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified.
File name: ‘UiPath.Platform, Version=24.10.3.0, Culture=neutral, PublicKeyToken=null’
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.AddAssemblyInternal(Assembly assembly, String path)
at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.<>c__DisplayClass15_0.b__0(Tuple2 range) 09:02:51.0013 => [ERROR] [UiPath.Studio.App.Logging.OutputLogger] [46] Cannot load assembly: C:\Users\durpa\.nuget\packages\uipath.uiautomation.activities.runtime\24.10.2\lib/net6.0-windows7.0/UiPath.UiAutomation.Activities.dll : System.IO.FileNotFoundException: Could not load file or assembly 'UiPath.Platform, Version=24.10.3.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified. File name: 'UiPath.Platform, Version=24.10.3.0, Culture=neutral, PublicKeyToken=null' at System.Reflection.RuntimeAssembly.GetExportedTypes() at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.AddAssemblyInternal(Assembly assembly, String path) at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.<>c__DisplayClass15_0.<ProcessAssemblies>b__0(Tuple2 range)
09:02:51.0020 => [ERROR] [UiPath.Studio.App.Logging.OutputLogger] [46] Cannot load assembly: C:\Users\durpa.nuget\packages\UiPath.uiautomation.activities.runtime\24.10.2\lib/net6.0-windows7.0/UiPath.UIAutomationNext.Activities.dll : System.IO.FileNotFoundException: Could not load file or assembly ‘UiPath.Platform, Version=24.10.3.0, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified.
File name: ‘UiPath.Platform, Version=24.10.3.0, Culture=neutral, PublicKeyToken=null’
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.AddAssemblyInternal(Assembly assembly, String path)
at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.<>c__DisplayClass15_0.b__0(Tuple2 range) 09:02:51.0030 => [ERROR] [UiPath.Studio.App.Logging.OutputLogger] [46] Cannot load assembly: C:\Users\durpa\.nuget\packages\uipath.uiautomation.activities\23.4.8\lib/net6.0-windows7.0/UiPath.CV.Activities.Design.dll : System.IO.FileNotFoundException: Could not load file or assembly 'UiPath.Platform, Version=24.10.3.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified. File name: 'UiPath.Platform, Version=24.10.3.0, Culture=neutral, PublicKeyToken=null' at System.Reflection.RuntimeAssembly.GetExportedTypes() at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.AddAssemblyInternal(Assembly assembly, String path) at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.<>c__DisplayClass15_0.<ProcessAssemblies>b__0(Tuple2 range)
09:02:51.0036 => [ERROR] [UiPath.Studio.App.Logging.OutputLogger] [46] Cannot load assembly: C:\Users\durpa.nuget\packages\UiPath.uiautomation.activities\23.4.8\lib/net6.0-windows7.0/UiPath.Semantic.Activities.Design.dll : System.IO.FileNotFoundException: Could not load file or assembly ‘UiPath.Semantic.Activities, Version=23.4.8.0, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified.
File name: ‘UiPath.Semantic.Activities, Version=23.4.8.0, Culture=neutral, PublicKeyToken=null’
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.AddAssemblyInternal(Assembly assembly, String path)
at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.<>c__DisplayClass15_0.b__0(Tuple2 range) 09:02:51.0043 => [ERROR] [UiPath.Studio.App.Logging.OutputLogger] [46] Cannot load assembly: C:\Users\durpa\.nuget\packages\uipath.uiautomation.activities\23.4.8\lib/net6.0-windows7.0/UiPath.UIAutomation.Activities.Design.dll : System.IO.FileNotFoundException: Could not load file or assembly 'UiPath.Platform, Version=24.10.3.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified. File name: 'UiPath.Platform, Version=24.10.3.0, Culture=neutral, PublicKeyToken=null' at System.Reflection.RuntimeAssembly.GetExportedTypes() at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.AddAssemblyInternal(Assembly assembly, String path) at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.<>c__DisplayClass15_0.<ProcessAssemblies>b__0(Tuple2 range)
09:02:51.0049 => [ERROR] [UiPath.Studio.App.Logging.OutputLogger] [46] Cannot load assembly: C:\Users\durpa.nuget\packages\UiPath.uiautomation.activities\23.4.8\lib/net6.0-windows7.0/UiPath.UIAutomationNext.Activities.Design.dll : System.IO.FileNotFoundException: Could not load file or assembly ‘UiPath.Platform, Version=24.10.3.0, Culture=neutral, PublicKeyToken=null’. The system cannot find the file specified.
File name: ‘UiPath.Platform, Version=24.10.3.0, Culture=neutral, PublicKeyToken=null’
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.AddAssemblyInternal(Assembly assembly, String path)
at UiPath.Studio.Plugin.Workflow.Services.AssemblyContainerBase.<>c__DisplayClass15_0.b__0(Tuple2 range) 09:02:51.0845 => [ERROR] [UiPath.Studio] [1] ReloadProject: System.InvalidOperationException: Failed to load all assemblies at UiPath.Studio.Plugin.Workflow.Services.ProjectProcessController.<>c__DisplayClass27_0.<<CreateContainer>b__0>d.MoveNext() --- End of stack trace from previous location --- at UiPath.Studio.Plugin.Workflow.Services.ProjectProcessController.CreateContainer(TargetFramework targetFramework, IEnumerable1 usedPackages, ProjectProcessOpenStageOneArgs args)
at UiPath.Studio.Plugin.Workflow.Services.ProjectProcessController.CreateProcess(ProjectProcessArgs args)
at UiPath.Studio.Plugin.Workflow.Project.Services.ProjectLoaderService.CreateProjectProcess(IWorkflowProjectModel project)
at UiPath.Studio.Plugin.Workflow.Project.Services.ProjectLoaderService.ReloadProject(IWorkflowProjectModel project)
at UiPath.Studio.Plugin.Workflow.Shared.Project.BaseWorkflowProjectFactory.ReloadProject(IProject project, Boolean reloadFromDisk), HResult -2146233079

Check the virtual machine’s network settings and make sure it’s able to reach UiPath’s package feed correctly. Also, try running UiPath as an administrator on the VM or reinstalling it completely to rule out any permission issues.

@Ferreira

Are the permissions sorted?

What package are you trying?

Because as per logs even basic packages still look like an issue

Cheers