Visual Studio 2019 will not start - ConfigurationErrorsException

tobbenb3 1 Reputation point
2021-02-10T16:43:02.593+00:00

I have a Visual Studio 2019 environment that has been running perfectly for a while. Until it gave weird errors today (I cannot now recall what they were).

After having tried misc. suggestions, including repairs of installation, dotnet core, checking updates of my Windows 10 installation etc., I uninstalled my recent Visual Studio installations, uninstalled all .net core installations except 2.2 and above. I also checked that folders were deleted as expected.

I then installed Visual Studio 2019 Professional from scratch using Visual Studio installer, but it will not start. This is the error I am getting in a popup window. I am getting the same error if I try and run devenv.exe /resetsettings

"Unrecognized configuration section startup ....appdata\local\microsoft\visualstudio\16.0_xxxxxxxx\devenv.exe.config line 13"

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.
1,031 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,416 Reputation points
    2021-02-11T05:47:13.01+00:00

    Hi tobbenb3 ,

    I have checked the file from the error message:
    66844-image.png

    And you can also confirm it is similar with it.

    In addition, maybe you can try to download Microsoft .NET Framework Repair Tool to repair your .net framework, then restart your machine to start visual studio.

    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.

  2. Michael Taylor 53,396 Reputation points
    2021-02-10T18:35:36.957+00:00

    Firstly you should not have uninstalled .NET Core. That is a runtime, not part of VS proper. You will have likely broken any app that relies on .NET Core. Also, uninstalling is rarely the correct solution. It seems to be the go to solution when somebody cannot figure something out and is, in my opinion, almost always wrong. Reminds me of the other great "solutions" that I hear - reboot, reinstall Windows, switch to another browser...

    At this point I suspect you have mangled your installation of VS badly and possibly removed stuff that VS needed. So you may have issues going forward. For the very specific error you're getting, go to your appdata\local\visualstudio folder and delete it. This will wipe out all your user stuff for VS but reinstalling effectively made it a mute point anyway. Then start VS so it'll rebuild your settings.

    In the future when you run into an issue with VS then run it in safemode using the /safemode option. If that works then the issue is related to an extension in most cases and you can work backwards to figure out the problem. If safemode doesn't work then reporting the issue to MS will help them diagnose the problem. In my experience it is almost always tied to a corrupted setting or whatever. Generally deleting the appdata\local folder information for the VS instance resolves the issue.


  3. tobbenb3 1 Reputation point
    2021-02-18T10:49:43.463+00:00

    Thanks to all for suggestions. I have tried so many things - running devenv /clearcache or /updateconfiguration also gave lots of errors and I ended up in a loop with VS asking for license and crashing again after adding the license account. (I somehow think my problems started because of an expired license)

    I have tried this:

    https://social.msdn.microsoft.com/Forums/vstudio/en-US/3bcd1881-f6da-42b6-85a3-bf6b17c8f1ec/vs-will-not-start-or-reinstall-multiple-errors?forum=visualstudiogeneral

    and even all suggestions from an MS support person without getting anywhere. The last suggestions involved deleting in the registry, and it is possible that it could have been solved that way (?) - what I tried was not enough.

    Anyway - on Friday I decided I did not have the time or patience to clean this up in any other way than doing a Windows Reset. A reset (keeping my user data) worked like a charm. After installing Visual Studio 2019 again everything works fine.

    0 comments No comments

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.