Hi,
I am opening an old project that is still working through invoke workflow. When I opened the Xaml UiPath told me to update the dependencies so I did. This is what I ended up with
When I try to close UiPath I get this error:
In text:
19.4.3+Branch.support/v2019.4.Sha.a8f4efb75012dc834aa4be501a7086e9372ef1b3
An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = WorkflowEditor (ReflectionActivator), Services = [UiPath.Studio.Plugin.Workflow.Editor.WorkflowEditor], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned â> An exception was thrown while invoking the constructor âVoid .ctor(UiPath.Studio.Contracts.IDocument, UiPath.Studio.Contracts.IDocumentService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService, UiPath.Studio.Plugin.Workflow.Debug.Breakpoints.IProjectBreakpointsService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IUnresolvedTypesNotificationService)â on type âWorkflowEditorâ. â> The value â[(not found) and (repeat<3)]â contains significant white space(s) but âxml:space = preserveâ cannot be written down on the member â{http://schemas.microsoft.com/netfx/2009/xaml/activities}While.Conditionâ. (See inner exception for details.) (See inner exception for details.)
Error: Autofac.Core.DependencyResolutionException: An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = WorkflowEditor (ReflectionActivator), Services = [UiPath.Studio.Plugin.Workflow.Editor.WorkflowEditor], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned â> An exception was thrown while invoking the constructor âVoid .ctor(UiPath.Studio.Contracts.IDocument, UiPath.Studio.Contracts.IDocumentService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService, UiPath.Studio.Plugin.Workflow.Debug.Breakpoints.IProjectBreakpointsService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IUnresolvedTypesNotificationService)â on type âWorkflowEditorâ. â> The value â[(not found) and (repeat<3)]â contains significant white space(s) but âxml:space = preserveâ cannot be written down on the member â{http://schemas.microsoft.com/netfx/2009/xaml/activities}While.Conditionâ. (See inner exception for details.) (See inner exception for details.) â> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor âVoid .ctor(UiPath.Studio.Contracts.IDocument, UiPath.Studio.Contracts.IDocumentService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerFileService, UiPath.Studio.Plugin.Workflow.Debug.Breakpoints.IProjectBreakpointsService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService, UiPath.Studio.Plugin.Workflow.Services.Interfaces.IUnresolvedTypesNotificationService)â on type âWorkflowEditorâ. â> The value â[(not found) and (repeat<3)]â contains significant white space(s) but âxml:space = preserveâ cannot be written down on the member â{http://schemas.microsoft.com/netfx/2009/xaml/activities}While.Conditionâ. (See inner exception for details.) â> System.Xaml.XamlXmlWriterException: The value â[(not found) and (repeat<3)]â contains significant white space(s) but âxml:space = preserveâ cannot be written down on the member â{http://schemas.microsoft.com/netfx/2009/xaml/activities}While.Conditionâ.
at System.Xaml.XamlXmlWriter.InMember.WriteXmlSpaceOrThrow(XamlXmlWriter writer, String value)
at System.Xaml.XamlXmlWriter.InMember.WriteValue(XamlXmlWriter writer, String value)
at System.Xaml.XamlXmlWriter.WriteValue(Object value)
at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
at System.Activities.XamlIntegration.ActivityBuilderXamlWriter.ImplementationNode.ObjectFrame.FlushMembers(XamlWriter parentWriter)
at System.Activities.XamlIntegration.ActivityBuilderXamlWriter.ImplementationNode.WriteEndObject()
at System.Activities.XamlIntegration.ActivityBuilderXamlWriter.WriteEndObject()
at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
at System.Xaml.XamlServices.Save(XamlWriter writer, Object instance)
at UiPath.Studio.Plugin.Workflow.Serializer.WorkflowXamlSerializer.SaveAsString(ActivityBuilder activityBuilder) in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\WorkflowSerializer\WorkflowXamlSerializer.cs:line 30
at UiPath.Studio.Plugin.Workflow.WorkflowHandling.Validation.DesignerStateValidator.GetSaveValidationError(Boolean flushEdits) in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\WorkflowHandling\Validation\DesignerStateValidator.cs:line 65
at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper.GetSaveValidationError() in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\WorkflowHandling\DesignerWrapper.cs:line 504
at UiPath.Studio.Plugin.Workflow.Services.DesignerViewService.GetSaveValidationError(String workflowId) in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Services\DesignerViewService.cs:line 32
at UiPath.Studio.Plugin.Workflow.Services.Interfaces.IDesignerViewService.GetSaveValidationError(String workflowId)
at UiPath.Studio.Plugin.Workflow.Services.DesignerViewProxy.GetSaveValidationError(String workflowId) in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Services\Proxies\DesignerViewProxy.cs:line 30
at UiPath.Studio.Plugin.Workflow.Services.UnresolvedTypesNotificationService.ShowNotificationIfNeeded(IInfoBar infoBar, IWorkflowDocument document) in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Services\UnresolvedTypesNotificationService.cs:line 41
at UiPath.Studio.Plugin.Workflow.Editor.WorkflowEditor.Init() in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\ToolWindows\WorkflowEditor.cs:line 92
at UiPath.Studio.Plugin.Workflow.Editor.WorkflowEditorâŚctor(IDocument document, IDocumentService documentService, IDesignerFileService workflowService, IProjectBreakpointsService breakpointsService, IDesignerViewService designerViewService, IUnresolvedTypesNotificationService unresolvedTypesNotificationService) in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\ToolWindows\WorkflowEditor.cs:line 51
at lambda_method(Closure , Object )
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
â End of inner exception stack trace â
at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context, IEnumerable1 parameters) at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable
1 parameters)
â End of inner exception stack trace â
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable
1 parameters)
at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable1 parameters) at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable
1 parameters)
at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context, Service service, IEnumerable1 parameters, Object& instance) at Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable
1 parameters)
at UiPath.Studio.Shared.Services.ServiceLocatorAutofac.ResolveType(Type type, Object ctorParameters) in D:\a\1\s\Studio\UiPath.Studio.Shared\Services\ServiceLocatorAutofac.cs:line 90
at UiPath.Studio.Plugin.Workflow.WorkflowDocumentFactory.CreateEditor(IDocument document) in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Document\WorkflowDocumentFactory.cs:line 76
at UiPath.Studio.Shell.Services.DocumentService.d__37.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\Services\DocumentService.cs:line 256
â End of stack trace from previous location where exception was thrown â
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Shell.Services.OpenCloseCommandsService.d__22.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\Services\OpenCloseCommandsService.cs:line 315
â End of stack trace from previous location where exception was thrown â
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Shell.ViewModels.MainWindowViewModel.d__193.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shell\ViewModels\MainWindowViewModelCommands.cs:line 101
â End of stack trace from previous location where exception was thrown â
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Studio.Shared.MVVM.Commands.TaskCommand`3.d__35.MoveNext() in D:\a\1\s\Studio\UiPath.Studio.Shared\MVVM\Commands\TaskCommand.cs:line 281
â End of stack trace from previous location where exception was thrown â
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146233088
I have tried to start the project after deleting the json but that was not the solution.
Can anyone help?
Thnx.
Greeting Dion