Visual Studio Community 2019 keeps crashing upon installation

Luigi Caradonna 111 Reputation points
2021-03-03T18:32:29.507+00:00

I've downloaded the installer today, then I executed it, it downloads some data, installs something, and then crashes on the window "Almost done... Getting everything ready". After that the installer results to be installed on my machine, but If I try to run it, it opens the windows, I can see some "loading" animations and after 1 second it freezes and then closes. I've tried several times to start it with the same result. I've already tried to update the system (restarted), disable the antivirus, and run as administrator, nothing did help. Going to the event viewer I find this error:

Error Information
AppInsightsEvent Name = vs/setupengine/fault
          Description = Application failed with an uncaught exception: Stringa non riconosciuta come valore DateTime valido.
     TelemetrySession = '6a8ec3cb-fd5e-45a3-8df2-a2025bfff9d2' Started = True OptIn=True IsInitialized = True Cloned = True
      WatsonEventType = VisualStudioNonFatalErrors2
             UTC time = 2021-03-03T18:15:22

 Exception:
 System.FormatException
 Stringa non riconosciuta come valore DateTime valido.
 System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles, TimeSpan& offset)
 System.DateTimeOffset.Parse(String input)
 Microsoft.VisualStudio.Setup.Installer.DeveloperNews.ViewModels.NewsFeedItemViewModel..ctor(NewsFeedItem item)
 Microsoft.VisualStudio.Setup.Installer.DeveloperNews.ViewModels.DeveloperNewsViewModel.<>c__DisplayClass6_1.<LoadNewsFeed>b__1()
 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
 System.Windows.Threading.DispatcherOperation.InvokeImpl()
 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
 System.Windows.Threading.DispatcherOperation.Invoke()
 System.Windows.Threading.Dispatcher.ProcessQueue()
 System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
 System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
 MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
 System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
 System.Windows.Application.RunDispatcher(Object ignore)
 System.Windows.Application.RunInternal(Window window)
 Microsoft.VisualStudio.Setup.Installer.Application.MainApplication.Microsoft.VisualStudio.Setup.Installer.IApplication.Run()
 Microsoft.VisualStudio.Setup.Installer.Program.ExecuteInternal(IServiceContainer services, ICommandLineParserResult`1 parserResult, ITelemetry telemetry, ILogger logger)
WerReportAddDump PID=3292 setup WerDumpTypeMiniDump

In the past I had VS community installed on this machine, it shouldn't be related to a hardware issue.

Is there anything I can try to solve this problem?

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.
959 questions
0 comments No comments
{count} vote

Accepted answer
  1. Luigi Caradonna 111 Reputation points
    2021-03-03T19:29:02.047+00:00

    I've managed to have the installer working. I've noticed that as the installer starts it looks for updates and there is where it freezes and crashed. I've disconnected my laptop from the internet and then started VS installer, it didn't crash. Once moved to the "Available" tab, I've reconnected my laptop and now I'm installing Visual Studio.

    2 people found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. M.Za 1 Reputation point
    2021-03-04T09:57:40.827+00:00

    Same error and same "solution"


  2. Alessandro Rossi 1 Reputation point
    2021-03-08T16:39:41.953+00:00

    Hello

    Looking at your names. it seems you're all Italians, like me.

      Exception:
      System.FormatException
      Stringa non riconosciuta come valore DateTime valido.
      System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles, TimeSpan& offset)
      System.DateTimeOffset.Parse(String input)
      Microsoft.VisualStudio.Setup.Installer.DeveloperNews.ViewModels.NewsFeedItemViewModel..ctor(NewsFeedItem item)
    

    There should be a nationalization related bug causing these crashes, on a date conversion occurring while updating the news feed, do you know how to notify Microsoft about it? So we can get a working installer with the next releases.

    Thanks