Error after converting Windows Legacy to Windows --System.Linq.Expressions', you may need to supply runtime policy

Hi,

Converted process from Windows legacy to Windows compatability using UiPath 2024.10.7 version and while publishing the package getting below error:System.Linq.Expressions’, you may need to supply runtime policy
Tried multiple ways by deleting packages and upgrading it and also tried deleting project json file as well but no luck.

Could someone help on this to resolve the issue.

Hi @Manaswini_UI,

Can you please add the specified namespace inform import namespaces tab?

Regards
Sonali


Imported same name space but same error while publishing.

@Manaswini_UI

Can you please upgrade all of your project dependencies?

Yes..Updated all packages to latest version

Hey @Manaswini_UI kindly open that link might be help to resolve your query

cheers

@Manaswini_UI

Issue still exists?

Can you close and reload your studio?

  • warning CS1701: Assuming assembly reference ‘System.Linq.Expressions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘System.Activities’ matches identity ‘System.Linq.Expressions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Linq.Expressions’, you may need to supply runtime policy

for this error solution is not mentioned in Troubleshooting Guide : Conversion from Windows-Legacy project to Windows project

Hi, Tried multiple times

Let’s bring the expert in :slight_smile:

@ppr may be you can help?

@Manaswini_UI

  • Open Manage Packages
  • Check the following:
  • Any packages referencing System.Linq.Expressions (like Newtonsoft, or custom .NET libraries)
  • Update all packages to the latest compatible version.
  • Remove unused or legacy dependencies.
    cheers

image
Using these packages..Its running fine in debugging mode but while publishing the process facing issues

Hi,

The following topic may help you.

Regards