大网数据广告活动
Web服务器与PHP

Unable to update Visual Studio using the Help menu

· 52CE 我爱测

Provides a resolution for an issue where you can't update Visual Studio using the Help menu.

Applies to:   Visual Studio Professional 2022

Symptoms

You can't update Visual Studio to the latest version using the Help menu in the Integrated Development Environment (IDE) (by selecting Help > Check for Updates > Update option).

You may also see the following error in the logs:

Error 0x80070057: Failed to read instance <InstanceNum>
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) 
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) 
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer) 
at Microsoft.VisualStudio.Setup.Installer.Extensions.GetReleaseNotesUris(IChannel channel) 
at Microsoft.VisualStudio.Setup.Installer.Models.Readers.ChannelReader.ReadFromChannel(ChannelNode`1 channelProduct) 
at Microsoft.VisualStudio.Setup.Installer.Models.Readers.ProductSummaryReader.ReadFromInstance(IInstance instance) 
at Microsoft.VisualStudio.Setup.Installer.Services.ProductsProviderService.TryGetInstalledProductSummary(IInstance instance) 

[4b94:000d][<DateTime>] Warning: Failed to initialize the update dialog: No instance registered for path "C:\Program Files\Microsoft Visual Studio\2022\Professional" 
[4b94:0001][<DateTime>] Navigate to Page: Final, Action: None, Message: The operation did not complete successfully 

Cause

This issue occurs when you use an outdated version of the Visual Studio Installer (earlier than 3.1.2188) that's incompatible with Visual Studio 2022. Error code 0x80070057 indicates that the installer can't read certain parameters. The older version of the Visual Studio Installer can't recognize and process the new parameters introduced in the latest updates.

Resolution

  1. Download vs_Professional.exe and save it to the C:\Temp folder.
  2. Delete the C:\Program Files (x86)\Microsoft Visual Studio\Installer folder, or update the Visual Studio Installer by right-clicking C:\Temp\vs_Professional.exe and selecting Run as Administrator.
  3. Select the Update button to start the update process.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
See source applicability · Source date 09/26/2023
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。