Hi,
We built 3 workflows and tried to publish it for deployment.
The first 2 is fine, the 3rd one have Registration: Activator pop-up error every time we try to publish. Also, this workflow have a custom package before and then we removed it but got same issue. Please help
Full Text Error:
19.4.4+Branch.support/v2019.4.Sha.6d308c7f5a32b559373887ae421ce7eaec8f8d24
An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = WorkflowPublishSettingsViewModel (ReflectionActivator), Services = [UiPath.Studio.Plugin.Workflow.PublishSettings.WorkflowPublishSettingsViewModel, UiPath.Studio.Plugin.Workflow.PublishSettings.IWorkflowPublishSettingsViewModel], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned —> An exception was thrown while invoking the constructor ‘Void .ctor(UiPath.Studio.Plugin.Workflow.PublishSettings.WorkflowPublishSettings, UiPath.Studio.Contracts.ISettingsService, UiPath.Studio.Contracts.IShortcutService, System.IO.Abstractions.IFileSystem, UiPath.Studio.Shared.MVVM.Commands.Interfaces.ICommandFactory, UiPath.Studio.Contracts.IProjectSettingsService, UiPath.Studio.Contracts.IDialogService, System.Func`2[UiPath.Studio.Shared.ViewModels.Publish.IPublishUriHistory,UiPath.Studio.Shared.ViewModels.Publish.IPublishDirectoryFeedBrowser], UiPath.Studio.Contracts.IMessageBoxService, UiPath.NuGet.ILocalNugetConfiguration)’ on type ‘WorkflowPublishSettingsViewModel’. —> Object reference not set to an instance of an object. (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 = WorkflowPublishSettingsViewModel (ReflectionActivator), Services = [UiPath.Studio.Plugin.Workflow.PublishSettings.WorkflowPublishSettingsViewModel, UiPath.Studio.Plugin.Workflow.PublishSettings.IWorkflowPublishSettingsViewModel], Lifetime = Autofac.Core.Lifetime.CurrentScopeLifetime, Sharing = None, Ownership = ExternallyOwned —> An exception was thrown while invoking the constructor ‘Void .ctor(UiPath.Studio.Plugin.Workflow.PublishSettings.WorkflowPublishSettings, UiPath.Studio.Contracts.ISettingsService, UiPath.Studio.Contracts.IShortcutService, System.IO.Abstractions.IFileSystem, UiPath.Studio.Shared.MVVM.Commands.Interfaces.ICommandFactory, UiPath.Studio.Contracts.IProjectSettingsService, UiPath.Studio.Contracts.IDialogService, System.Func2[UiPath.Studio.Shared.ViewModels.Publish.IPublishUriHistory,UiPath.Studio.Shared.ViewModels.Publish.IPublishDirectoryFeedBrowser], UiPath.Studio.Contracts.IMessageBoxService, UiPath.NuGet.ILocalNugetConfiguration)' on type 'WorkflowPublishSettingsViewModel'. ---> Object reference not set to an instance of an object. (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.Plugin.Workflow.PublishSettings.WorkflowPublishSettings, UiPath.Studio.Contracts.ISettingsService, UiPath.Studio.Contracts.IShortcutService, System.IO.Abstractions.IFileSystem, UiPath.Studio.Shared.MVVM.Commands.Interfaces.ICommandFactory, UiPath.Studio.Contracts.IProjectSettingsService, UiPath.Studio.Contracts.IDialogService, System.Func
2[UiPath.Studio.Shared.ViewModels.Publish.IPublishUriHistory,UiPath.Studio.Shared.ViewModels.Publish.IPublishDirectoryFeedBrowser], UiPath.Studio.Contracts.IMessageBoxService, UiPath.NuGet.ILocalNugetConfiguration)’ on type ‘WorkflowPublishSettingsViewModel’. —> Object reference not set to an instance of an object. (See inner exception for details.) —> System.NullReferenceException: Object reference not set to an instance of an object.
at UiPath.Studio.Core.Services.ProjectSettingsService.GetProjectSettings[T](String settingsName) in d:\a\1\s\Studio\UiPath.Studio.Core\Settings\ProjectSettingsService.cs:line 68
at UiPath.Studio.Plugin.Workflow.PublishSettings.WorkflowPublishSettingsViewModel…ctor(WorkflowPublishSettings model, ISettingsService settingsService, IShortcutService shortcutService, IFileSystem fileSystem, ICommandFactory commandFactory, IProjectSettingsService projectSettingsService, IDialogService dialogService, Func2 feedBrowserFactory, IMessageBoxService messageBoxService, ILocalNugetConfiguration localNugetConfiguration) in d:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\PublishSettings\WorkflowPublishSettingsViewModel.cs:line 30 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, IEnumerable
1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable1 parameters) --- End of inner exception stack trace --- at Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable
1 parameters)
at Autofac.Core.Resolving.InstanceLookup.Execute()
at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable1 parameters) at Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable
1 parameters)
at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable1 parameters) at lambda_method(Closure , WorkflowPublishSettings ) at UiPath.Studio.Plugin.Workflow.Services.WorkflowPublishSettingsUiService.GetUserInput(WorkflowPublishSettings model) in d:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\PublishSettings\WorkflowPublishSettingsUiService.cs:line 25 at UiPath.Studio.Plugin.Workflow.Services.WorkflowPublishSettingsService.GetWorkflowPublishSettings(IPublishSettings defaultSettings) in d:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\PublishSettings\WorkflowPublishSettingsService.cs:line 19 at UiPath.Studio.Plugin.Workflow.Project.BaseWorkflowProjectFactory.<Publish>d__39.MoveNext() in d:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\Project\Factory\BaseWorkflowProjectFactory.cs:line 234 --- 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.Core.CommonServices.ProjectServiceBase.<Publish>d__32.MoveNext() in d:\a\1\s\Studio\UiPath.Studio.Core\CommonServices\ProjectServiceBase.cs:line 177 --- 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.<PublishExecute>d__220.MoveNext() in d:\a\1\s\Studio\UiPath.Studio.Shell\ViewModels\MainWindowViewModelCommands.cs:line 386 --- 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