UiPath Studioを起動すると「An error occurred during the activation of a particular registration」エラーが発生する

:grey_question: Question

UiPath Studioの起動時に以下のエラーが発生します。

エラーメッセージ内には「NuGet.Config is not valid XML. Path: ‘%APPDATA%\NuGet\NuGet.Config’」という文言が含まれています。

エラーメッセージ:

An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = AppConfigurator (ReflectionActivator), Services = [UiPath.Studio.Shell.AppConfigurator], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope —> An error occurred during the activation of a particular registration. See the inner exception for details. Registration: Activator = PackageFeedSettingsViewModel (ReflectionActivator), Services = [UiPath.PackageExplorer.UI.ViewModels.PackageFeedSettingsViewModel, UiPath.PackageExplorer.UI.ViewModels.Interfaces.IPackageFeedSettingsViewModel], Lifetime = Autofac.Core.Lifetime.RootScopeLifetime, Sharing = Shared, Ownership = OwnedByLifetimeScope —> An exception was thrown while invoking the constructor ‘Void .ctor(UiPath.PackageExplorer.Core.Services.Interfaces.IFeedService, UiPath.PackageExplorer.Core.Services.Interfaces.IFeedVerificationService, UiPath.Studio.Contracts.IDialogService, UiPath.Studio.Contracts.IMessageBoxService, UiPath.Studio.Shared.MVVM.Commands.Interfaces.ICommandFactory)’ on type ‘PackageFeedSettingsViewModel’. —> NuGet.Config is not valid XML. Path: ‘%APPDATA%\NuGet\NuGet.Config’.

:bulb: Answer

原因

%APPDATA%\NuGet\NuGet.Config ファイルが正しいXML形式になっていない場合に発生します

解決策

%APPDATA%\NuGet\NuGet.Config ファイルの内容をご確認いただき適切な値に編集してください。
適切な値が不明であれば %APPDATA%\NuGet\NuGet.Config ファイルを削除してください。次回のStudioの実行時に既定のファイルが作成されます。