Visual Studio Installer silently closes

Davide Accogli 21 Reputation points
2021-03-06T10:59:46.947+00:00

Hi, today I launched Visual Studio Installer because my Visual Studio 2019 install saied that a new version was available. Visual Studio Installer updated itself and while "preparing" it closed silently. Every time I run it, it closes, so I can't update Visual Studio neither add functionalities. Here is the ErrorInformation.txt: Error Information AppInsightsEvent Name = vs/setupengine/fault Description = Application failed with an uncaught exception: Stringa non riconosciuta come valore DateTime valido. TelemetrySession = 'de024281-2957-4e2b-b9a3-94275e7bbf0e' Started = True OptIn=True IsInitialized = True Cloned = True WatsonEventType = VisualStudioNonFatalErrors2 UTC time = 2021-03-06T10:49:05 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=10760 setup WerDumpTypeMiniDump It seems that a datetime value is not recognized. Thanks for any help

Developer technologies | Visual Studio | Other
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2021-03-08T07:51:18.83+00:00

    Hi @Davide Accogli ,

    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.

2 additional answers

Sort by: Most helpful
  1. Ken Tucker 5,861 Reputation points
    2021-03-06T12:49:35.753+00:00

    Delete the files in the folder C:\Program Files (x86)\Microsoft Visual Studio\Installer. This will not remove visual studio. Then download the visual studio installer and install it again. Once the installer is installed it will give you the option to update visual studio

    0 comments No comments

  2. Davide Accogli 21 Reputation points
    2021-03-06T17:31:52.103+00:00

    Thanks you for your suggestion. I did as you said, deleted the files in the folder, download installer and after install it self closes. I took a look at the error and it is the same (invalid DateTime). I assume this is a problem of the new version of the installer, because I have the same error on three completely different PC.

    Please, Microsoft, take a look at it.

    Thanks


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.