After updating to v17.9.3 Visual Studio IDE closes at start with error message [FIXED]
VS 2022 Community was running flawlessy for a month. Two days ago I was notified there was the update v17.9.3, so I launched it and left (I did a previous update some weeks ago with no troubles). When I was back the update was successful, VS told me that now I needed to log in with MS account so I tried but clicking the button didn't do anything! So I just had to clic "Ignore for now". The IDE started but I saw some upper left error messages about not found main IDE functionalities. Then a messagebox with the error "'VSPackage' not loaded correctly". Rebooting the IDE didn't help.
So I made a Visual Studio repair from its installer, but it didn't help.
Searching the Internet I found the first thing to do was looking for the .Net version, so I typed "dotnet --version" in the command prompt but I received this error: "Fatal error. Internal CLR error. (0x80131506)". This is shown with any parameter I launch the dotnet.exe file, but only the dotnet.exe located in "C:\Program Files\dotnet", launching it from "C:\Program Files (x86)\dotnet" and "C:\Program Files\Microsoft Visual Studio\2022\Community\dotnet\net8.0\runtime" it works. What concerns me is that the environment variable path uses the "C:\Program Files\dotnet" that doesn't work...
So I installed the .Net SDK 8.03 from here: https://dotnet.microsoft.com/en-us/download
But after this same error executing dotnet.exe: "Fatal error. Internal CLR error. (0x80131506)". By the way, I tried installing this package on a clean VM and same result, same error message!
And now the IDE only shows the splash screen and then closes with this message:
Microsoft.ServiceHub.Utility.HostCrashException:
Failed to start host 'dotnet.x64$IdentityHost'. Host exited with code '-1073741819' (ErrorKind: HostExited) (ErrorKind: HostExited HResult: 80131500)
I made the repairing other two times and uninstalled and reinstalled VS. Nothing helped.
The only thing now is to format and reinstall Windows.
So I made a Visual Studio repair from its installer, but it didn't help.
Searching the Internet I found the first thing to do was looking for the .Net version, so I typed "dotnet --version" in the command prompt but I received this error: "Fatal error. Internal CLR error. (0x80131506)". This is shown with any parameter I launch the dotnet.exe file, but only the dotnet.exe located in "C:\Program Files\dotnet", launching it from "C:\Program Files (x86)\dotnet" and "C:\Program Files\Microsoft Visual Studio\2022\Community\dotnet\net8.0\runtime" it works. What concerns me is that the environment variable path uses the "C:\Program Files\dotnet" that doesn't work...
So I installed the .Net SDK 8.03 from here: https://dotnet.microsoft.com/en-us/download
But after this same error executing dotnet.exe: "Fatal error. Internal CLR error. (0x80131506)". By the way, I tried installing this package on a clean VM and same result, same error message!
And now the IDE only shows the splash screen and then closes with this message:
Microsoft.ServiceHub.Utility.HostCrashException:
Failed to start host 'dotnet.x64$IdentityHost'. Host exited with code '-1073741819' (ErrorKind: HostExited) (ErrorKind: HostExited HResult: 80131500)
I made the repairing other two times and uninstalled and reinstalled VS. Nothing helped.
The only thing now is to format and reinstall Windows.



