The process of installing, configuring, and customizing Visual Studio to support development workflows across languages, platforms, and workloads.
Visual studio installer crashes
Hi,
I don't know what has changed, but when I try to run visual studio 2022 installer it just shuts down.
From the event logs I can find the following information from the error log.
Error Information
AppInsightsEvent Name = vs/setup/bootstrapper/error
Description = BadImageFormatException
TelemetrySession = '303f3afd-5262-44f0-a5ff-e77d4a286654' Started = True OptIn=True IsInitialized = True Cloned = False
WatsonEventType = VisualStudioNonFatalErrors2
UTC time = 2022-03-24T06:34:40
Exception:
System.BadImageFormatException
Could not load file or assembly 'PresentationFramework-SystemXmlLinq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570)
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
System.Activator.CreateInstance(String assemblyName, String typeName)
MS.Internal.AssemblyHelper.LoadExtensionFor(String name)
MS.Internal.AssemblyHelper.ExtensionsForSystemXmlLinq(Boolean force)
MS.Internal.SystemXmlLinqHelper.IsXElement(Object item)
System.Windows.Controls.ContentPresenter.DataTypeForItem(Object item, DependencyObject target, Type& type)
System.Windows.FrameworkElement.FindTemplateResourceInternal(DependencyObject target, Object item, Type templateType)
System.Windows.Controls.ContentPresenter.DefaultSelector.SelectTemplate(Object item, DependencyObject container)
System.Windows.Controls.ContentPresenter.ChooseTemplate()
System.Windows.Controls.ContentPresenter.EnsureTemplate()
System.Windows.Controls.ContentPresenter.OnPreApplyTemplate()
System.Windows.FrameworkElement.ApplyTemplate()
System.Windows.FrameworkElement.MeasureCore(Size availableSize)
System.Windows.UIElement.Measure(Size availableSize)
System.Windows.Controls.Border.MeasureOverride(Size constraint)
System.Windows.FrameworkElement.MeasureCore(Size availableSize)
System.Windows.UIElement.Measure(Size availableSize)
System.Windows.Controls.Control.MeasureOverride(Size constraint)
System.Windows.FrameworkElement.MeasureCore(Size availableSize)
System.Windows.UIElement.Measure(Size availableSize)
System.Windows.Controls.Grid.MeasureOverride(Size constraint)
System.Windows.FrameworkElement.MeasureCore(Size availableSize)
System.Windows.UIElement.Measure(Size availableSize)
System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
System.Windows.Controls.Grid.MeasureOverride(Size constraint)
System.Windows.FrameworkElement.MeasureCore(Size availableSize)
System.Windows.UIElement.Measure(Size availableSize)
MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
System.Windows.FrameworkElement.MeasureCore(Size availableSize)
System.Windows.UIElement.Measure(Size availableSize)
System.Windows.Controls.Border.MeasureOverride(Size constraint)
System.Windows.FrameworkElement.MeasureCore(Size availableSize)
System.Windows.UIElement.Measure(Size availableSize)
System.Windows.Controls.Control.MeasureOverride(Size constraint)
System.Windows.FrameworkElement.MeasureCore(Size availableSize)
System.Windows.UIElement.Measure(Size availableSize)
System.Windows.Controls.Grid.MeasureOverride(Size constraint)
System.Windows.FrameworkElement.MeasureCore(Size availableSize)
System.Windows.UIElement.Measure(Size availableSize)
MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
System.Windows.FrameworkElement.MeasureCore(Size availableSize)
System.Windows.UIElement.Measure(Size availableSize)
System.Windows.Controls.Control.MeasureOverride(Size constraint)
System.Windows.FrameworkElement.MeasureCore(Size availableSize)
System.Windows.UIElement.Measure(Size availableSize)
System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
System.Windows.Controls.Grid.MeasureOverride(Size constraint)
System.Windows.FrameworkElement.MeasureCore(Size availableSize)
System.Windows.UIElement.Measure(Size availableSize)
MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
System.Windows.FrameworkElement.MeasureCore(Size availableSize)
System.Windows.UIElement.Measure(Size availableSize)
System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
System.Windows.FrameworkElement.MeasureCore(Size availableSize)
System.Windows.UIElement.Measure(Size availableSize)
System.Windows.Controls.Border.MeasureOverride(Size constraint)
System.Windows.FrameworkElement.MeasureCore(Size availableSize)
System.Windows.UIElement.Measure(Size availableSize)
System.Windows.Window.MeasureOverrideHelper(Size constraint)
System.Windows.Window.MeasureOverride(Size availableSize)
System.Windows.FrameworkElement.MeasureCore(Size availableSize)
System.Windows.UIElement.Measure(Size availableSize)
System.Windows.Interop.HwndSource.SetLayoutSize()
System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
System.Windows.Window.SetRootVisual()
System.Windows.Window.SetRootVisualAndUpdateSTC()
System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
System.Windows.Window.CreateSourceWindow(Boolean duringShow)
System.Windows.Window.CreateSourceWindowDuringShow()
System.Windows.Window.SafeCreateWindowDuringShow()
System.Windows.Window.ShowHelper(Object booleanBox)
System.Windows.Window.Show()
System.Windows.Window.ShowDialog()
Microsoft.VisualStudio.Setup.Bootstrapper.ViewModel.RootViewModel.Show()
Microsoft.VisualStudio.Setup.Bootstrapper.InteractiveViewModel.Show()
Microsoft.VisualStudio.Setup.Bootstrapper.Bootstrapper.Execute()
Microsoft.VisualStudio.Setup.Bootstrapper.Program.Run(String[] args)
WerReportAddDump PID=16308 vs_setup_bootstrapper WerDumpTypeMiniDump