NuGet.config is not valid xml path error

when I wan to create a new process this error is showing

1 Like

hi @saandra
Restart your system and try

Yes I’ve tried it but it shows the same error I even uninstalled it and installed it again

Hi,

Can you post your Nuget.Config file content here ?
It’s clearly a xml validation error, maybe we can help you fix it.

-Andrei

19.1.0+Branch.master.Sha.3db2bfe8751ed76c2c21f7ee16f53ff69a3e3b75

The project ‘C:\Users\saandra\Documents\UiPath\BlankProcess6\project.json’ could not be opened: NuGet.Config is not valid XML. Path: ‘C:\Users\saandra\AppData\Roaming\NuGet\NuGet.Config’…

Cannot open item: UiPath.Studio.Contracts.RecoverableException: The project ‘C:\Users\saandra\Documents\UiPath\BlankProcess6\project.json’ could not be opened: NuGet.Config is not valid XML. Path: ‘C:\Users\saandra\AppData\Roaming\NuGet\NuGet.Config’… —> NuGet.Configuration.NuGetConfigurationException: NuGet.Config is not valid XML. Path: ‘C:\Users\saandra\AppData\Roaming\NuGet\NuGet.Config’. —> System.Xml.XmlException: ‘.’, hexadecimal value 0x00, is an invalid character. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String args)
at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char data, Int32 length, Int32 invCharPos)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
at NuGet.Configuration.XmlUtility.LoadSafe(Stream input, LoadOptions options)
at NuGet.Configuration.XmlUtility.GetDocument(String fullPath)
at NuGet.Configuration.XmlUtility.GetOrCreateDocument(XDocument content, String fullPath)
at NuGet.Configuration.Settings.<>c__DisplayClass23_0.<.ctor>b__0()
at NuGet.Configuration.Settings.<>c__DisplayClass82_0.b__0()
— End of inner exception stack trace —
at NuGet.Configuration.Settings.<>c__DisplayClass82_0.b__0()
at NuGet.Common.ConcurrencyUtilities.ExecuteWithFileLocked(String filePath, Action action)
at NuGet.Configuration.Settings.ExecuteSynchronized(Action ioOperation)
at NuGet.Configuration.Settings…ctor(String root, String fileName, Boolean isMachineWideSettings)
at NuGet.Configuration.Settings.ReadSettings(String root, String settingsPath, Boolean isMachineWideSettings)
at NuGet.Configuration.Settings.LoadUserSpecificSettings(List1 validSettingFiles, String root, String configFileName, IMachineWideSettings machineWideSettings, Boolean useTestingGlobalPath) at NuGet.Configuration.Settings.LoadSettingsForSpecificConfigs(String root, String configFileName, List1 validSettingFiles, IMachineWideSettings machineWideSettings, Boolean loadAppDataSettings, Boolean useTestingGlobalPath)
at NuGet.Configuration.Settings.LoadDefaultSettings(String root, String configFileName, IMachineWideSettings machineWideSettings, Boolean loadAppDataSettings, Boolean useTestingGlobalPath)
at UiPath.PackageExplorer.Core.Services.FeedPersistanceService.GetAllSettings()
at UiPath.PackageExplorer.Core.Services.FeedPersistanceService.Load()
at UiPath.PackageExplorer.Core.Services.FeedService.LoadFeeds()
at System.Lazy1.CreateValue() at System.Lazy1.LazyInitValue()
at System.Lazy1.get_Value() at UiPath.PackageExplorer.Core.Services.FeedService.GetAllEnabled() at UiPath.Studio.Shell.Packaging.PackageOperationBase.GetInstallPackageCommand(IEnumerable1 packagesToInstall, CancellationToken cancellationToken, String alternateInstallDir)
at UiPath.Studio.Shell.Packaging.PackageOperationBase.d__24.MoveNext()
— 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.Packaging.PackageOperationBase.<>c__DisplayClass23_0.<b__0>d.MoveNext()
— 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.Packaging.PackageOperationBase.d__23.MoveNext()
— 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.Packaging.PackageOperationRestore.d__2.MoveNext()
— 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.Packaging.PackageService.d__28.MoveNext()
— 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.Plugin.Workflow.Project.WorkflowProjectModelFactory.d__34.MoveNext()
— 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.Plugin.Workflow.Project.WorkflowProjectModelFactory.d__42.MoveNext()
— 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.Plugin.Workflow.Project.WorkflowProjectModelFactory.d__39.MoveNext()
— 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.PersistableServiceBase3.<OnOpenAsync>d__15.MoveNext() --- End of inner exception stack trace --- at UiPath.Studio.Shell.Services.PersistableServiceBase3.d__15.MoveNext()
— 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.ProjectService.d__39.MoveNext()
— 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.PersistableServiceBase3.<OpenAsync>d__8.MoveNext() --- 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.<OpenProjectAsync>d__15.MoveNext() --- 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.<CreateNewProjectAsync>d__18.MoveNext() --- 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.StartPageViewModel.<OnNewProjectCommand>d__31.MoveNext() --- 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.TaskCommand3.d__35.MoveNext()
— 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

Open that file and post its content here.

The issue was resolved I just deleted the NuGet.config file and reopened the Application. Now, I’m able create a new process.

3 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.