0

通过 UIPath Assistance 运行自动化时,我遇到了以下错误,

活动“主要”的 CacheMetadata 抛出“System.Xaml.XamlObjectWriterException:无法创建未知类型”{http://schemas.microsoft.com/netfx/2009/xaml/activities}Variable({clr-namespace:Microsoft.Identity.Client ;assembly=Microsoft.Identity.Client}IPublicClientApplication)'。在 System.Xaml.XamlObjectWriter.WriteStartObject(XamlType xamlType) 在 System.Xaml.XamlWriter.WriteNode(XamlReader reader) 在 System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter) 在 System.Activities.XamlIntegration.FuncFactory 1.Evaluate() at System.Activities.DynamicActivity.OnInternalCacheMetadata(Boolean createEmptyBindings) at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindings, IListSystem.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity, ChildActivity& nextActivity, Stack 的 1& validationErrors)1& activitiesRemaining, ActivityCallStack parentChain, IList1& validationErrors, ProcessActivityTreeOptions options, ProcessActivityCallback callback) at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList1& validationErrors) at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, LocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IListSystem.Activities.XamlIntegration.ActivityXamlServices.RequiresCompilation(IDynamicActivity 动态活动,LocationReferenceEnvironment 环境,字符串和语言)处的 1&validationErrors)'。在 System.Activities.XamlIntegration.ActivityXamlServices.RequiresCompilation(IDynamicActivity dynamicActivity, LocationReferenceEnvironment environment, String& language) 在 System.Activities.XamlIntegration.ActivityXamlServices.Compile(IDynamicActivity dynamicActivity, LocationReferenceEnvironment environment) 在 System.Activities.XamlIntegration.ActivityXamlServices.Load(XamlReader xamlReader , ActivityXamlServicesSettings 设置) 在 System.Activities.XamlIntegration.ActivityXamlServices.Load(XmlReader xmlReader, ActivityXamlServicesSettings 设置) 在 System.Activities.XamlIntegration.ActivityXamlServices.Load(Stream 流,

4

1 回答 1

0

我已经通过执行以下步骤解决了。

转到: C:\User\{YourUser}\AppData\Roaming\NuGet ,如果找到NuGet.Config文件,则删除它。

  1. 现在转到 UIPath Studio 并单击开始。
  2. 单击 Process ,您将获得New Blank Process
  3. 请选择语言并单击创建,您将获得设计页面。单击管理包并转到所有包。
  4. 现在搜索UIPath.Web.Activities并选择 install 并单击 Save 。

重新启动 UIPath,它应该可以工作。

于 2020-10-30T11:34:45.953 回答