question

fabianomartino avatar image
4 Votes"
fabianomartino asked Christian-Schiffer commented

Visual Studio Community 2019 setup closes abruptly

After launch the Visual Studio Community 2019 online setup closes abruptly.
It doesn't show any error.

The setup executable is vs_community__749614207.1614062140.exe

I found this error in the Event Viewer:

Error Information
AppInsightsEvent Name = vs/setupengine/fault
Description = Application failed with an uncaught exception: Stringa non riconosciuta come valore DateTime valido.
TelemetrySession = '3d854234-2c53-42b1-b9d5-1cebcee1d553' Started = True OptIn=True IsInitialized = True Cloned = True
WatsonEventType = VisualStudioNonFatalErrors2
UTC time = 2021-03-03T18:36:00

My system is Windows 10 build 19042.844
The language is Italian and the date and time settings are Italian.

The message "Stringa non riconosciuta come valore DateTime valido" is "String is not a valid DateTime"

I attached the complete error report from the Event Viewer.
73828-errorinformation.txt

Best Regards
Fabiano Martino


vs-setup
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello,
I had the same exact issue trying to install VS 2019 for the first time in a recently formatted laptop.
I've tried your suggestion and it worked instantly, thank you very much!!!
I was looking for troubleshooting on the web but without mentioning the exact exception due to a String value, after some hours finally I've found this page with the right solution. Thank you again

Best Regards
Antonello Amadori

0 Votes 0 ·

This didn't work for me, but running directly from C:\ worked. I suspect because I have special characters in my username!

2 Votes 2 ·
AnnaXiu-MSFT avatar image
8 Votes"
AnnaXiu-MSFT answered CarlosRamirezRodriguez-4774 commented

Hi @Fabianomartino,

Welcome to Microsoft Q&A!

According to your error message, it has been reported here: https://developercommunity.visualstudio.com/t/Visual-Studio-Installer-crashes-after-up/1356122 .

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

if it still persists, you can also add your comments in there to track the process, then we need to waiting for the response comes from the product team engineers. If there is any update, I will also add it here.

Thanks for your understanding.

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.





· 9
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

None of above workarrounds

vs_installer.exe --locale en-US
vs_installer.exe --locale en-EN

work for me.

Still get

[3da0:0015][2021-04-01T09:24:06] Download of 'https://go.microsoft.com/fwlink/?linkid=2066144' succeeded using engine 'WebClient'
[3da0:0001][2021-04-01T09:24:06] Error 0x80131940: Application failed with an uncaught exception: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.

and Installer crashes instantly.

1 Vote 1 ·

I have the exact same issue with the invalid hexadecimal char. Looking though the strack trace it seems has something to do with an SVG graphics but i could not find any that seem to be encoded incorrectly.

 [2764:000d][2021-04-07T15:19:48] Showing the window.
 [2764:0001][2021-04-07T15:19:48] Error 0x80131940: Application failed with an uncaught exception: '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
    ...
    at System.Xml.XmlDocument.Load(XmlReader reader)
    at SharpVectors.Dom.Css.CssXmlDocument.Load(XmlReader reader)
    at SharpVectors.Dom.Svg.SvgDocument.Load(Stream inStream)
    ...
    at Microsoft.VisualStudio.Setup.Installer.Converters.SvgStringToDrawingConverter.ConvertTo(Object value, Object parameter, CultureInfo culture)
    ...
0 Votes 0 ·

I had the same problem.

I renamed files plan.xml and product.svg located in C:\ProgramData\Microsoft\VisualStudio\Packages_Instances\c2e5bad4.

Then I launched vs_installer.exe and clicked on Install on current Visual Studio to repair it.

It seems ok now


1 Vote 1 ·
Show more comments

Hi,
after removing the network cable, the installation started

0 Votes 0 ·

Oh my god, thank you so much!

I actually reinstalled so many things.
I was even suspicious about my antivirus and that was going be the next thing going to be removed.

How this can even happening?! Crashing installers for non en-US locale people!

I found another workaround, it's about adding this line into the "System32/drivers/etc/host" file.

127.0.0.1 vsstartpage.blob.core.windows.net

0 Votes 0 ·

I've same problem.
"c:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe --locale it-IT" (Italian installation) crash.

0 Votes 0 ·
Giuseppe-1255 avatar image Giuseppe-1255 FabrizioAlessandri-8753 ·

Fabrizio use "locale en-EN" instead of "locale it-IT", even if it is an Italian version.
I have the same configuration and it worked for me.
Giuseppe

0 Votes 0 ·

Your solution works for me too.
I just wanted to make my feedback for italian bug.

Thank Giuseppe.

Fabrizio

1 Vote 1 ·
Giuseppe-1255 avatar image
0 Votes"
Giuseppe-1255 answered Christian-Schiffer commented

I have the same problem, after last Vs update i think.
If I start VS Community 2019 from control panel closes abruptly

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


"c:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe --locale en-US"

This work also in Italian installation ;-)

0 Votes 0 ·

Nope it does not

0 Votes 0 ·
GiuseppeTerrasi-7889 avatar image
0 Votes"
GiuseppeTerrasi-7889 answered GiuseppeTerrasi-7889 published

I have the same problem with Installer version 2.10.36-develop-g26c659c5

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jits04-6114 avatar image
1 Vote"
Jits04-6114 answered JellyBitz-2801 edited

vs_installer.exe --locale en-US

this work for me!!! Thanks a lot!!

unfortunately I only found this post now. I reset the machine, but it was a lot of work I already wanted to do. I struggled to install it because it crashed. Fortunately yesterday I managed to get it started with a similar command without understanding how I had done it. Believe I had tried in all ways

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Same... I thought about some stupid configuration I changed, never I could think about a failed parse.
Oh well, I cleaned the system from various old install, maybe it's for the better.

0 Votes 0 ·
AndreaMassimoMarinoni-3423 avatar image
0 Votes"
AndreaMassimoMarinoni-3423 answered

I have lauched VS and in the menu '?' I selected 'check for updates' and VS has updated.
VS installer instead keeps crashing.
i don0t consider this a workaround for VS installer but only to update VS if VS installer does not start.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MarcoBoscarato-9790 avatar image
0 Votes"
MarcoBoscarato-9790 answered

workaround "vs_installer.exe --locale en-US" works for me ...
thanks

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.