VS Installer and other Microsoft programs won't run. VS has errors

rbrayb 11 Reputation points
2021-11-09T08:19:47.857+00:00

When I run VS Enterprise and Community, I get the errors in the attachment.

147711-vscapture.png

I tried to re-install VS but VS Install won't run.

Get this type of error:

Faulting application name: setup.exe_Visual Studio, version: 2.11.40.25675, time stamp: 0xe17e31d0
Faulting module name: clr.dll, version: 4.8.4420.0, time stamp: 0x6109cbc8
Exception code: 0xc0000005
Fault offset: 0x000000000037bb74
Faulting process id: 0x2df8
Faulting application start time: 0x01d7d53befb06b2e
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio\Installer\setup.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Report Id: 674ea46a-59bf-4d11-bf32-093639eae1ba
Faulting package full name:

Always clr.dll

I can't uninstall it either. Same error.

Microsoft Visual Studio Enterprise 2019 (2)
Version 16.8.1

Dot Net Framework 4.8.04084

I get the clr.dll error running Word etc. as well. !

I've checked memory, run Malwarebytes, run:

sfc /scannow
dism /online /cleanup-image /restorehealth

etc. etc.

I have another PC that works fine but I can't copy over the files from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ e.g. clr.dll

Keeps giving access denied.

Other non-Microsoft programs on my PC, all browsers etc work fine.

I'm running Windows 10. Have installed all updates.

If I'm running VS in debug mode with e.g. Azure functions, get the message "Cannot start the Azure Storage Emulator"

Please let me know if you need more info :-)

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

3 answers

Sort by: Most helpful
  1. PengGe-MSFT 3,241 Reputation points
    2021-11-10T02:04:52.053+00:00

    Hi, @rbrayb

    Welcome to Microsoft Q&A!

    You can try to use InstallCleanup.exe to remove Visual Studio.
    It is in this folder: C:\Program Files (x86)\Microsoft Visual Studio\Installer
    You can refer to this document: Remove Visual Studio

    Sincerely,
    Peng
    *
    If you have extra questions about this answer, please click "Comment". If the answer is the right solution, please click "Accept Answer" and kindly 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.

    No comments

  2. rbrayb 11 Reputation points
    2021-11-10T03:08:25.937+00:00

    Thanks for the reply.

    I followed the directions and ran InstallCleanup.exe

    Then I tried to install VS 2019 Enterprise again.

    But the installer crashed with the same error as above.

    I think the real problem is that clr.dll in this folder (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll) is corrupt somehow.

    Any ideas as to how to download C:\Windows\Microsoft.NET\Framework64\v4.0.30319?

    I have .NET 5 on my PC so any attempt to download an earlier version fails.


  3. rbrayb 11 Reputation points
    2021-11-10T09:21:33.737+00:00

    Thanks.

    Says the tool is unable to resolve the installation issue :-(