problem opening a new project on VS 2019 and adding a new file to existing project

#ilovedumsky 1 Reputation point
2021-06-11T10:11:40.33+00:00

I am beginner programmer using visual studio 2019 and i cant open a new project on my visual studio, cause every time it sends this message: error parsing user settings file/ and also the project i opened before this issue started i tried to add a new item because i started learning how to create object and classes but any time i try to add a new item it just sends this message: Exception of type 'system.exception' was thrown/

Please i need help.

Developer technologies | Visual Studio | Debugging
Developer technologies | Visual Studio | Setup
Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,441 Reputation points Microsoft External Staff
    2021-06-11T13:49:29.597+00:00

    Hello @#ilovedumsky ,

    Welcome to Microsoft Q&A forum.

    Please kindly check if your issue is similar to this issue An error was encountered while initializing templates. Looks like this is a “setup” issue, please try to repair Visual Studio 2019 from Visual Studio Installer > VS 2019 > More > Repair. If Repair doesn’t work, perhaps you need to try to uninstall VS 2019 and then reinstall it.

    Here are the steps for uninstalling VS manually

    1). Manually delete the cache files and folders you previously installed to
    C:\Program Files (x86)\Microsoft Visual Studio
    %programdata%\Microsoft\visualstudio\packages

    2). Delete the setup registry key which was set when you first installed (remember to make a backup)
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\VisualStudio\Setup
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\Setup
    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\Setup

    Re-image the computer should be the last resort, if this issue block you for a long time, you can try it.

    Best Regards,
    Tianyu

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