通过 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, IList
System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity, ChildActivity& nextActivity, Stack 的 1& validationErrors)1& activitiesRemaining, ActivityCallStack parentChain, IList
1& 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, IList
System.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 流,