Process worked fine before migrating to Windows compatibility

I have a process that worked fine and still works as a Windows-legacy application. Our Orchestrator is 2022.10.2 and is Studio 2022.10.5. The application uses four standard UiPath packages and three custom libraries. The libraries have been migrated, not uneventfully, but I did eventually get them working in Windows compatibility. The migrated application shows no errors when I run project analyzer but I get “Compilation failed or was cancelled” and a lengthy error when I try to deploy it.

Unexpected error has occurred during the library compilation process:
The assembly compilation returned the following errors:

  • The namespace ‘’ already contains a definition for ‘Process’
  • Assuming assembly reference ‘System.Diagnostics.Process, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Diagnostics.Process, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Diagnostics.Process’, you may need to supply runtime policy
  • ‘GoogleSheetsBatchableClientActivity.Request’ is obsolete: ‘This property is deprecated. Please use the GoogleSheetsBatchTarget.BatchedRequests property instead.’
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • ‘GSuiteApplicationScope.Services’ is obsolete: ‘Use the AuthenticationScopes parameter instead’
  • ‘GoogleService’ is obsolete
  • Assuming assembly reference ‘System.Text.RegularExpressions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Text.RegularExpressions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Text.RegularExpressions’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Text.RegularExpressions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Text.RegularExpressions, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Text.RegularExpressions’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • ‘GSuiteApplicationScope.Services’ is obsolete: ‘Use the AuthenticationScopes parameter instead’
  • ‘GoogleService’ is obsolete
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • ‘GoogleSheetsBatchableClientActivity.Request’ is obsolete: ‘This property is deprecated. Please use the GoogleSheetsBatchTarget.BatchedRequests property instead.’
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • ‘GSuiteApplicationScope.Services’ is obsolete: ‘Use the AuthenticationScopes parameter instead’
  • ‘GoogleService’ is obsolete
  • ‘GSuiteApplicationScope.Services’ is obsolete: ‘Use the AuthenticationScopes parameter instead’
  • ‘GoogleService’ is obsolete
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • ‘CopyDriveFile.SupportsTeamDrives’ is obsolete: ‘Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.’
  • ‘GSuiteApplicationScope.Services’ is obsolete: ‘Use the AuthenticationScopes parameter instead’
  • ‘GoogleService’ is obsolete
  • ‘UploadFile.SupportsTeamDrives’ is obsolete: ‘Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.’
  • ‘GSuiteApplicationScope.Services’ is obsolete: ‘Use the AuthenticationScopes parameter instead’
  • ‘GoogleService’ is obsolete
  • Assuming assembly reference ‘System.Diagnostics.Process, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Diagnostics.Process, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Diagnostics.Process’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy
  • ‘UploadFile.SupportsTeamDrives’ is obsolete: ‘Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.’
  • ‘GoogleSheetsBatchableClientActivity.Request’ is obsolete: ‘This property is deprecated. Please use the GoogleSheetsBatchTarget.BatchedRequests property instead.’
  • ‘GoogleSheetsBatchableClientActivity.Request’ is obsolete: ‘This property is deprecated. Please use the GoogleSheetsBatchTarget.BatchedRequests property instead.’
  • ‘GSuiteApplicationScope.Services’ is obsolete: ‘Use the AuthenticationScopes parameter instead’
  • ‘GoogleService’ is obsolete
  • ‘GSuiteApplicationScope.Services’ is obsolete: ‘Use the AuthenticationScopes parameter instead’
  • ‘GoogleService’ is obsolete
  • Assuming assembly reference ‘System.Data.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ used by ‘UiPath.System.Activities’ matches identity ‘System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ of ‘System.Data.Common’, you may need to supply runtime policy

Hi Timothy,
Did you find an answer to this problem? I am having the same type of error when publishing a library package after we upgraded to Studio & Orchestrator V 2022.10.

Zoe,

I did. I just had to make sure that I was using the “right” version of UiPath.System.Activities. I think I was using an older version and I just needed to use 22.10.x.