Visual studio installer crash

shadowings 6 Reputation points
2021-03-06T17:49:38.047+00:00

I can't install Visual Studio from the vs installer.
The installer starts and then crashes. I've downloaded the log collection tool and I can see this crash in the dd_installer_timestamp log:

[4b18:0001][2021-03-06T18:33:50] Error 0x80131537: Application failed with an uncaught exception: Stringa non riconosciuta come valore DateTime valido.
in System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles, TimeSpan& offset)
in System.DateTimeOffset.Parse(String input)
in Microsoft.VisualStudio.Setup.Installer.DeveloperNews.ViewModels.NewsFeedItemViewModel..ctor(NewsFeedItem item)
in Microsoft.VisualStudio.Setup.Installer.DeveloperNews.ViewModels.DeveloperNewsViewModel.<>c__DisplayClass6_1.<LoadNewsFeed>b__1()
in System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
in System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
in System.Windows.Threading.DispatcherOperation.InvokeImpl()
in System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
in System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
in MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
in System.Windows.Threading.DispatcherOperation.Invoke()
in System.Windows.Threading.Dispatcher.ProcessQueue()
in System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
in MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
in MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
in System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
in System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
in System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
in MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
in MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
in System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
in System.Windows.Application.RunDispatcher(Object ignore)
in System.Windows.Application.RunInternal(Window window)
in Microsoft.VisualStudio.Setup.Installer.Application.MainApplication.Microsoft.VisualStudio.Setup.Installer.IApplication.Run()
in Microsoft.VisualStudio.Setup.Installer.Program.ExecuteInternal(IServiceContainer services, ICommandLineParserResult`1 parserResult, ITelemetry telemetry, ILogger logger)

The error message in english is: "String not recognized as a valid DateTime"

So, some data inside the DeveloperNews feed is preventing me from installing anything! My OS language is Italian

What can I do?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,620 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
970 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Luca Ortoffi 1 Reputation point
    2021-03-07T11:18:44.987+00:00

    Probably there's an error in the news feed

    You can add

    127.0.0.1 vsstartpage.blob.core.windows.net

    to your host file: C:\Windows\System32\drivers\etc\hosts as a temporary workaround

    0 comments No comments

  2. Anna Xiu-MSFT 25,801 Reputation points Microsoft Vendor
    2021-03-08T09:24:00.147+00:00

    Hi @shadowings ,

    Welcome to Microsoft Q&A!

    Please view the similar issue: https://learn.microsoft.com/en-us/answers/questions/297414/visual-studio-community-2019-setup-closes-abruptly.html?childToView=298913#answer-298913

    And try to run the following command line from the installer directory (C:\Program Files (x86)\Microsoft Visual Studio\Installer) to launch your Visual Studio Installer:
    vs_installer.exe --locale en-US

    Sincerely,
    Anna

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.