When I'm installing visual studio 2022 then I'm not able to launch it because of this error

Pavan Kumar Verma 1 Reputation point
2022-12-30T09:53:53.997+00:00

275101-error.jpeg

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,726 questions
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.
982 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 28,066 Reputation points Microsoft Vendor
    2023-01-02T05:45:27.86+00:00

    Hi @Pavan Kumar Verma ,

    The "AppData" is a hidden folder(Windows File Explorer > View > Show > Hidden items), so you can confirm that the "17.0_c0d1307b" folder exists but the ActivityLog.xml file wasn’t generated right? If so, please run devenv /log in "Developer Command Prompt for Visual Studio 2022" and close VS after the error appears. Navigate to %APPDATA%\Microsoft\VisualStudio\<Version>\ActivityLog.xml open and check the ActivityLog.xml file.

    Besides, did you try to repair VS, and did it work? Please check following too:

    1. Make sure you have full/enough permissions of your machine(you may discuss with your administrator if you are using your organization’s machine).
    2. Please try to disable any installed antivirus software temporarily and reboot your machine then launch VS again.
    3. If it’s possible, please try to update Windows OS, and install any pending installed Windows Updates.

    Update1:

    Here are some other suggestions for you to check:

    1. Go to C:\Users\username\AppData\Local\Microsoft\VisualStudio\17.0_XXXXXXXX, rename the ComponentModelCache folder, launch VS again.
    2. Run devenv /ResetSettings in Developer Command Prompt for Visual Studio Community 2022 to reset VS settings.
    3. Reboot your machine and restart VS.
    4. Run CMD as administrator and run DISM.exe /Online /Cleanup-image /Restorehealth command then run sfc /scannow command to fix any corrupted system files.
    5. Try to run visual studio Community 2022 as administrator.

    Feel free to let us know if you can successfully launch VS Community 2022.

    0 comments No comments

  2. JAIME ALBERTO ARANGO CASTANEDA 0 Reputation points
    2024-05-08T05:40:53.1133333+00:00

    La solucion despues de pasar horas haciendo de todo es muy facil, solo entren a editar, preferencias, external tools y en External Script Editor: seleccionen: open by file extension y en external script editor args escriben: $(File).cs, con esto resuelven el problema y todo vuelve a la normalidad

    0 comments No comments