Visual Studio 2022 crash after startup
Good afternoon.
After starting visual studio 2022 closes immediately. After examining the dmp file it writes the following: "CLR.Exception.System.IO.FileNotFoundException._message" "System.Runtime, Version=4.2.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". Where can I find or install it. Or how i can fix that? Attached log dmp file.
Visual Studio
Visual Studio Setup
-
Anna Xiu-MSFT 29,831 Reputation points • Microsoft Vendor
2024-02-27T06:05:39.8133333+00:00 Hello, does your VS2022 work before? You can open the Visual Studio Installer and update or repair the VS2022. If you have any anti-virus software or privilege management software, please temporarily disable them. Then, run VS as administrator. If it persists, please share us detailed error message to investigate it further.
-
Kataany 0 Reputation points
2024-02-27T08:14:30.3333333+00:00 Yes, it worked before. I tried to fix via Visual Studio Installer, but I'm going into an infinite wait for Visual Studio Installer update at 90%.
-
Anna Xiu-MSFT 29,831 Reputation points • Microsoft Vendor
2024-02-27T08:36:52.5766667+00:00 You can manually remove the Visual Studio Installer folder: C:\Program Files (x86)\Microsoft Visual Studio\Installer. Then, re-download the bootstrapper file from the following Microsoft Site and run it as administrator.
https://visualstudio.microsoft.com/downloads/
After this, update or repair the VS2022.
-
Kataany 0 Reputation points
2024-02-27T09:49:50.68+00:00 I tried to fix it by downloading a new Visual Studio installer. But now it just closes after initializing.
The decompression_log has the following messages:
[2/27/2024, 16:47:19] The entire Box execution exiting with result code: 0x0 [2/27/2024, 16:47:19] Launched extracted application exiting with result code: 0x1389 -
Anna Xiu-MSFT 29,831 Reputation points • Microsoft Vendor
2024-02-28T10:00:19.93+00:00 Do you recall if you deleted any system files or changed any registry key before? Please check for your Windows Updates and apply all pending or recommended patches.
-
Kataany 0 Reputation points
2024-02-28T11:35:04.2266667+00:00 Good day. Most likely yes, because I cleaned the computer, but there is no restore point.
Also the latest updates are installed. -
Kataany 0 Reputation points
2024-02-28T11:35:27.8233333+00:00 Good day. Most likely yes, because I cleaned the computer, but there is no restore point. Also the latest updates are installed.
-
Anna Xiu-MSFT 29,831 Reputation points • Microsoft Vendor
2024-03-01T13:19:24.3033333+00:00 Please have a try with the following steps: open Windows Settings ( Windows + I ) > Go to Update & Security > Troubleshoot > Windows Update > Run the troubleshooter, which attempts to identify any problems with your computer。
You can also try to run “sfc /scannow” at the command prompt to repair missing or corrupted system files.
-
Mahmoud Ashraf Mahmoud Eid Elsayed 20 Reputation points
2024-03-03T23:34:31.9466667+00:00 Start by repairing your Visual Studio 2022 installation. To do this, you can go to "Control Panel" > "Programs" > "Programs and Features", find Visual Studio 2022 in the list, right click it, and choose "Repair". This will attempt to fix any corrupted or missing files in your Visual Studio installation.
-
Kataany 0 Reputation points
2024-03-05T04:54:26.3033333+00:00 @Mahmoud Ashraf Mahmoud Eid Elsayed Hi, but I don't have repair, only uninstall and change.
-
Kataany 0 Reputation points
2024-03-05T05:27:51.0133333+00:00 @Anna Xiu-MSFT
After performing the following steps:Run the troubleshooter, which attempts to identify any problems with your computer
sfc /scannowI got the following results:
Windows Resource Protection did not find any integrity violations.
You can try exploring other options that might be helpful
visual studio 2022 still fails to start with an error: Could not load file or assembly 'System.Runtime, Version=4.2.2.2.0.
-
Kataany 0 Reputation points
2024-03-05T05:31:07.9566667+00:00 After performing the following steps:
Run the troubleshooter, which attempts to identify any problems with your computer.
sfc /scannow.
I got the following results:
You can try exploring other options that might be helpful
Windows Resource Protection did not find any integrity violations.
visual studio 2022 still fails to start with an error: Could not load file or assembly 'System.Runtime, Version=4.2.2.2.0,
-
Anna Xiu-MSFT 29,831 Reputation points • Microsoft Vendor
2024-03-05T06:47:44.94+00:00 Do you recall if you deleted the download cache folder or the ‘_Instances’ file?
The ‘_Instances’ is under your download cache folder, the default path is C:\ProgramData\Microsoft\VisualStudio\Packages\_Instances.
-
Kataany 0 Reputation points
2024-03-05T06:56:06.8466667+00:00 @Anna Xiu-MSFT No. Because there's a _Instances folder in the Packages folder.
-
Kataany 0 Reputation points
2024-03-05T06:59:14.45+00:00 No. Because there's a _Instances folder in the Packages folder.
-
Anna Xiu-MSFT 29,831 Reputation points • Microsoft Vendor
2024-03-05T07:25:40.0133333+00:00 Do you have any anti-virus software or security management software?
Please try to run the vs_installershell.exe file to launch your Visual Studio Installer: C:\Program Files (x86)\Microsoft Visual Studio\Installer.
-
Kataany 0 Reputation points
2024-03-05T07:30:00.3966667+00:00 No third-party, just standard windows.
OK, Visual Studio Installer started via vs_installershell.exe. If I try to update or repair the installed Visual Studio, everything stops at 90%.
-
Anna Xiu-MSFT 29,831 Reputation points • Microsoft Vendor
2024-03-05T07:45:28.54+00:00 Can you restart your pc and update/repair VS again?
If you have any errors or warnings during updating/repairing VS, please share it here.
-
Kataany 0 Reputation points
2024-03-05T09:12:03.6233333+00:00 Tried it. It's the same :(
-
Anna Xiu-MSFT 29,831 Reputation points • Microsoft Vendor
2024-03-05T09:16:08.2933333+00:00 Could you successfully update/repair VS?
It's just stuck at 90%, are there any error prompts or warnings?
-
Kataany 0 Reputation points
2024-03-05T09:51:25.06+00:00 dd_installer logs have the following error:
Error 0x80131534: Application failed with an uncaught exception:
Microsoft.VisualStudio.Telemetry.NativeMethods.GetFullProcessExeName()
Microsoft.VisualStudio.Telemetry.WindowsHostInformationProvider.InitializeName()
System.Lazy1.CreateValue() System.Lazy
1.LazyInitValue()
Microsoft.VisualStudio.Telemetry.TelemetrySessionInitializer.BuildInitializer(TelemetrySessionSettings telemetrySessionSettings)
Microsoft.VisualStudio.Setup.Installer.Services.TelemetryFactory.CreateExperimentationFactory() -
Kataany 0 Reputation points
2024-03-05T09:51:56.1+00:00 dd_installer logs have the following error:
Error 0x80131534: Application failed with an uncaught exception:
Microsoft.VisualStudio.Telemetry.NativeMethods.GetFullProcessExeName()
Microsoft.VisualStudio.Setup.Installer.Services.TelemetryFactory.CreateExperimentationFactory() -
Kataany 0 Reputation points
2024-03-05T09:57:10.06+00:00 Also
Error 0x8013153b: Could not update channel "https://aka.ms/vs/17/release/channel":
Microsoft.VisualStudio.Setup.Download.WebClientEngine.GetWebResponse(Uri uri, DownloadContext downloadContext, DownloadSummary& downloadSummary, HttpWebRequest& webRequest, String& remoteAddress, CancellationToken cancellationToken, Int64 bytesOffset) -
Anna Xiu-MSFT 29,831 Reputation points • Microsoft Vendor
2024-03-11T06:10:24.2966667+00:00 Hello, can you please check if the assembly ‘System.Runtime’ is in the GAC?
-
Kataany 0 Reputation points
2024-03-11T06:46:06.28+00:00 Hi.
In %windir%\Microsoft.NET\assembly. I have 3 folders GAC_MSIL, GAC_64, GAC_32. Only in GAC_MSIL I have System.Runtime with a single folder v4.0_4.0.0.0.
Sign in to comment