Error CA0001 after upgrading Visual Studio to version 16.8.4

Peter Toye 191 Reputation points
2021-02-04T17:49:13.547+00:00

After upgrading VS to 16.8.4 (I can't remember exactly what version I was on, but it was 16.7.something) I now get an compile error CA0001 saying 'Exception of type 'Phx.FatalError' was thrown. Clicking on the error code sends me to

https://learn.microsoft.com/en-us/visualstudio/code-quality/ca0001?f1url=%3FappId%3DDev16IDEF1%26l%3DEN-US%26k%3Dk(CA0001);k(TargetFrameworkMoniker-.NETFramework,Version%253Dv4.7.2)%26rd%3Dtrue&view=vs-2019

but that page doesn't mention this error message. This is a complete stopper for me as I don't know how to clear the error. Anyone here got any ideas, please?

I don't even know if I can get back to an earlier version of VS.

Thanks in advance,

Peter

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,255 questions
{count} votes

Accepted answer
  1. Dylan Zhu-MSFT 6,421 Reputation points
    2021-02-05T02:53:32.94+00:00

    Hi PeterToye,

    You can try to use this method:

    1. Run cmd in administrator mode
    2. Type this command: regsvr32 "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\Common7\Packages\Debugger\msdia140.dll"

    If it doesn't work, you can leave a comment under this thread which has been Investigated. Best Regards, Dylan

    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.**

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.