You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a clean Windows 11 machine I've installed VS 2022 Community Preview including workloads for Uno Platform. Back then it was a .NET 9.0.0 SDK. When 9.0.1 came out, I have downloaded a new version from the web and installed it. Obviously have updated workloads etc. The first thing was I started getting weird things during compilation. I went to check installed Extensions within IDE, but that window did not open - it displayed exception (below). ActivityLog.xml did not show anything obvious to fix. I decided to repair VS, opened Installer - there's a message like "nothing installed, Select from available". I have opened Apps list - it's there. Whenever I try to modify or uninstall from there, an Installer opens up and displays "An installed product matching the following parameters cannot be found: installPath C:\Program Files\Microsoft Visual Studio\2022\Preview". If I open that directory - VS is there.
I had to manually remove VS and install everything all over again (doesn;t matter it is preview or not). It did work for a while until SDK 9.0.2 came out. I have installed it manually and bumped into the same problem again. The picture below shows how many times I've tried.... For the last time I decided not to touch SDK at all and do not update. I did almost a full workloads cleanup. Installed VS one's again. It's just two Microsoft .NET SDK 9.0.200 (x64) from Visual Studio (180KB) and another one a -preview.0.25057.12. All good. I've reopened my project, but it didn't seem to like 9.0.200 for some reason. I've opened global.json, set the sdk version explicitly to 9.0.100. Didn't work. Removed the version, let it use 9.0.200 as is. Well, it does not compile. I decide to open Extensions in the IDE.... Guess what! VS is lost again.
For now I have removed directories from a AppData\Roaming, have removed versioned entries from the registry, reinstalling VS Community 17.13 (a preview has a broken manifest).
To Reproduce
Install VS 2022 Community or Community Preview including maui and android/ios/maccatalyst/macos/wasm-tools workloads, install your extensions. I personally choose to work with Uno Platform. Either install the latest .NET 9.0.x SDK (works all the time for me), or update workloads, fiddle aroung with sdk version in global.json or your project. VS Extensions stop opening, VS is not recognized as installed by VS Installer.
Exceptions (if any)
An exception was encountered while constructing the content of this frame. This information is also logged in "C:\Users\serge\AppData\Roaming\Microsoft\VisualStudio\17.0_224a6190\ActivityLog.xml".
Exception details:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException: Element not found. (Exception from HRESULT: 0x80070490)
at Microsoft.VisualStudio.Setup.Configuration.ISetupConfiguration2.GetInstanceForCurrentProcess()
at Microsoft.VisualStudio.ExtensionManager.Utilities.get_CurrentVsInstance()
at Microsoft.VisualStudio.ExtensionManager.UI.InstalledExtensionViewModel..ctor(IInstalledExtension extension, Boolean canToggleEnabled, String reasonCannotEnable, CancellationToken cancellationToken)
at Microsoft.VisualStudio.ExtensionManager.UI.ExtensionProviderUtilities.<>c__DisplayClass0_0.b__1(IInstalledExtension extension)
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at Microsoft.VisualStudio.ExtensionManager.UI.ExtensionProviderUtilities.InitializeInstalledExtensions(ExtensionManagerService extensionManagerService, CancellationToken cancellationToken, IReadOnlyList1 commandSet) at Microsoft.VisualStudio.ExtensionManager.UI.InstalledExtensionsProvider.SynchronousRefreshWork() at Microsoft.VisualStudio.ExtensionManager.UI.TaskSynchronizationHelper.ScheduleWorkAsync(CancellationToken cancellationToken) at Microsoft.VisualStudio.ExtensionManager.UI.InstalledExtensionsProvider.RefreshExtensionList() at Microsoft.VisualStudio.ExtensionManager.UI.InstalledExtensionsProvider..ctor(ExtensionProviderArguments args, List1 commandSet)
at Microsoft.VisualStudio.ExtensionManager.UI.ExtensionManagerDataContext..ctor(ExtensionManagerToolWindowCreationContext context, StatusReportingManager statusReportingManager, Action OnClearExtensions)
at Microsoft.VisualStudio.ExtensionManager.UI.ExtensionManagerToolWindowControl..ctor(ExtensionManagerToolWindowCreationContext context, StatusReportingManager statusReportingManager)
at Microsoft.VisualStudio.ExtensionManager.UI.ExtensionManagerToolWindow..ctor(ExtensionManagerToolWindowCreationContext context)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Microsoft.VisualStudio.Shell.Package.InstantiateToolWindow(Type toolWindowType, Object context)
at Microsoft.VisualStudio.Shell.Package.<>c__DisplayClass74_0.g__CreateToolWindowWorker|1()
at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, UInt32 flags, Object context, Guid persistenceGuid)
at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, Object context)
at Microsoft.VisualStudio.Shell.AsyncPackage.d__24.MoveNext()
Further technical details
Visual Studio 2022 Community 17.13 and Visual Studio 2022 Community Preview 17.14
On a clean Windows 11 machine I've installed VS 2022 Community Preview including workloads for Uno Platform. Back then it was a .NET 9.0.0 SDK. When 9.0.1 came out, I have downloaded a new version from the web and installed it. Obviously have updated workloads etc. The first thing was I started getting weird things during compilation. I went to check installed Extensions within IDE, but that window did not open - it displayed exception (below). ActivityLog.xml did not show anything obvious to fix. I decided to repair VS, opened Installer - there's a message like "nothing installed, Select from available". I have opened Apps list - it's there. Whenever I try to modify or uninstall from there, an Installer opens up and displays "An installed product matching the following parameters cannot be found: installPath C:\Program Files\Microsoft Visual Studio\2022\Preview". If I open that directory - VS is there.
I had to manually remove VS and install everything all over again (doesn;t matter it is preview or not). It did work for a while until SDK 9.0.2 came out. I have installed it manually and bumped into the same problem again. The picture below shows how many times I've tried.... For the last time I decided not to touch SDK at all and do not update. I did almost a full workloads cleanup. Installed VS one's again. It's just two Microsoft .NET SDK 9.0.200 (x64) from Visual Studio (180KB) and another one a -preview.0.25057.12. All good. I've reopened my project, but it didn't seem to like 9.0.200 for some reason. I've opened global.json, set the sdk version explicitly to 9.0.100. Didn't work. Removed the version, let it use 9.0.200 as is. Well, it does not compile. I decide to open Extensions in the IDE.... Guess what! VS is lost again.
For now I have removed directories from a AppData\Roaming, have removed versioned entries from the registry, reinstalling VS Community 17.13 (a preview has a broken manifest).
To Reproduce
Install VS 2022 Community or Community Preview including maui and android/ios/maccatalyst/macos/wasm-tools workloads, install your extensions. I personally choose to work with Uno Platform. Either install the latest .NET 9.0.x SDK (works all the time for me), or update workloads, fiddle aroung with sdk version in global.json or your project. VS Extensions stop opening, VS is not recognized as installed by VS Installer.
Exceptions (if any)
An exception was encountered while constructing the content of this frame. This information is also logged in "C:\Users\serge\AppData\Roaming\Microsoft\VisualStudio\17.0_224a6190\ActivityLog.xml".
Exception details:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException: Element not found. (Exception from HRESULT: 0x80070490)
at Microsoft.VisualStudio.Setup.Configuration.ISetupConfiguration2.GetInstanceForCurrentProcess()
at Microsoft.VisualStudio.ExtensionManager.Utilities.get_CurrentVsInstance()
at Microsoft.VisualStudio.ExtensionManager.UI.InstalledExtensionViewModel..ctor(IInstalledExtension extension, Boolean canToggleEnabled, String reasonCannotEnable, CancellationToken cancellationToken)
at Microsoft.VisualStudio.ExtensionManager.UI.ExtensionProviderUtilities.<>c__DisplayClass0_0.b__1(IInstalledExtension extension)
at System.Linq.Enumerable.WhereSelectEnumerableIterator
2.MoveNext() at System.Collections.Generic.List
1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable
1 source)at Microsoft.VisualStudio.ExtensionManager.UI.ExtensionProviderUtilities.InitializeInstalledExtensions(ExtensionManagerService extensionManagerService, CancellationToken cancellationToken, IReadOnlyList
1 commandSet) at Microsoft.VisualStudio.ExtensionManager.UI.InstalledExtensionsProvider.SynchronousRefreshWork() at Microsoft.VisualStudio.ExtensionManager.UI.TaskSynchronizationHelper.ScheduleWorkAsync(CancellationToken cancellationToken) at Microsoft.VisualStudio.ExtensionManager.UI.InstalledExtensionsProvider.RefreshExtensionList() at Microsoft.VisualStudio.ExtensionManager.UI.InstalledExtensionsProvider..ctor(ExtensionProviderArguments args, List
1 commandSet)at Microsoft.VisualStudio.ExtensionManager.UI.ExtensionManagerDataContext..ctor(ExtensionManagerToolWindowCreationContext context, StatusReportingManager statusReportingManager, Action OnClearExtensions)
at Microsoft.VisualStudio.ExtensionManager.UI.ExtensionManagerToolWindowControl..ctor(ExtensionManagerToolWindowCreationContext context, StatusReportingManager statusReportingManager)
at Microsoft.VisualStudio.ExtensionManager.UI.ExtensionManagerToolWindow..ctor(ExtensionManagerToolWindowCreationContext context)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Microsoft.VisualStudio.Shell.Package.InstantiateToolWindow(Type toolWindowType, Object context)
at Microsoft.VisualStudio.Shell.Package.<>c__DisplayClass74_0.g__CreateToolWindowWorker|1()
at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, UInt32 flags, Object context, Guid persistenceGuid)
at Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, Object context)
at Microsoft.VisualStudio.Shell.AsyncPackage.d__24.MoveNext()
Further technical details
Visual Studio 2022 Community 17.13 and Visual Studio 2022 Community Preview 17.14
ActivityLog.xml.txt
dotnetinfo.txt
The text was updated successfully, but these errors were encountered: