Yesterday I upgraded Visual Studio 2022 from 17.1.x to 17.2. Now, when I try to open a solution, I can see the the Solution Explorer being populated with the projects, and files I had open previously are opened as well. After a second or so, the solution closes.
This happens with most, but not all solutions, but I haven't been able to find a pattern. There was one I that could finally open once, but today it closes immediately again. When I create a new solution and add a project, VS will also (sometimes) close the solution.
What I tried (but didn't fix the problem):
- Run VS in safe mode, i.e.
devenv /SafeMode
- Reset VS, i.e.
devenv /ResetSettings
- Repair the installation using Visual Studio Installer
- Removed some extensions. Admittedly, I may have to remove all to be sure the rpoblem is not with any of those
- Run VS with logging. The logfile shows some errors about not being able to load ChromeDebugAdapter and EdgeDebugAdapter, but I have no idea how to fix those. The exact error message is below.
Anyone have an idea on how to proceed?
Update My problem seems to be the same as this one. I'll monitor that thread, and post an answer here if it is fixed.
Unable to load extension at: C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\PROFESSIONAL\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\WEBCLIENT\DIAGNOSTICS\CHROMEDEBUGADAPTER\. Exception text: Microsoft.VisualStudio.ExtensionManager.InvalidExtensionManifestException: This VSIX does not apply to any product installed on this machine. The problem could be that the VSIX manifest's format is not recognized, or that the manifest has been corrupted. ---> System.InvalidOperationException: There is an error in XML document (12, 5). ---> System.Xml.Schema.XmlSchemaValidationException: The element 'Identifier' in namespace 'http://schemas.microsoft.com/developer/vsx-schema/2010' has incomplete content. List of possible elements expected: 'SupportedProducts' in namespace 'http://schemas.microsoft.com/developer/vsx-schema/2010'.
 at System.Xml.Schema.XmlSchemaValidator.SendValidationEvent(ValidationEventHandler eventHandler, Object sender, XmlSchemaValidationException e, XmlSeverityType severity)
 at System.Xml.Schema.XmlSchemaValidator.InternalValidateEndElement(XmlSchemaInfo schemaInfo, Object typedValue)
 at System.Xml.XsdValidatingReader.ProcessEndElementEvent()
 at System.Xml.XsdValidatingReader.Read()
 at System.Xml.XmlReader.ReadElementString()
 at Microsoft.VisualStudio.ExtensionManager.XmlSerializationReaderVsix.Read5_VsixIdentifier(Boolean isNullable, Boolean checkType)
 at Microsoft.VisualStudio.ExtensionManager.XmlSerializationReaderVsix.Read12_Vsix(Boolean isNullable, Boolean checkType)
 at Microsoft.VisualStudio.ExtensionManager.XmlSerializationReaderVsix.Read13_Vsix()
 at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
 --- End of inner exception stack trace ---
 at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
 at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ReadVSIXManifest(XmlReader xmlReader)
 at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ReadManifest(Stream manifestStream)
 --- End of inner exception stack trace ---
 at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ReadManifest(Stream manifestStream)
 at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl..ctor(String path)
 at Microsoft.VisualStudio.ExtensionManager.InstalledExtensionImpl..ctor(String vsixManifestPath, IEngineHost engineHost, Boolean installedPerMachine, CultureInfo preferredCulture, IList1 extensionPackVsixIds, IList1 packageGuids)
 at Microsoft.VisualStudio.ExtensionManager.InstalledExtensionImpl..ctor(String vsixManifestPath, IEngineHost engineHost, Boolean installedPerMachine, CultureInfo preferredCulture, IList1 packageGuids)
 at Microsoft.VisualStudio.ExtensionManager.ScanModule.TryLoadExtension(ExtensionLocations location, String fullPath, String normalizedPath, InstalledExtensionImpl& installedExtension, Int32 retryCount, Int32 retryDelay, Int32 attempts).