How can i fix VS 2019 Error Code: 0x80131500 IntelliSense finished initializing, but an error occurred when attempting to load the document.

AtomXZR 16 Reputation points
2021-04-24T12:38:13.343+00:00

90870-vs-error-1.png

Occurred: After Finished Create New Project.

Visual Studio 2019 [ 16.9.4 ]

Tried:
1. Use Repair in Visual Studio Installer.
2. Re Installed Visual Studio

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

6 answers

Sort by: Most helpful
  1. SAURAV SAJEEV 56 Reputation points
    2021-05-12T13:17:31.54+00:00

    I thought the only way was to reset my PC and reinstall visual studio, but then I thought of resetting visual studio and it helped.
    The error is basically due to some errors in importing the files. So I tried to reset the vs settings by simply going over to

    tools>import and export settings>reset all setings>general

    and hit next.

    hope it helped :-)

    11 people found this answer helpful.

  2. Anna Xiu-MSFT 25,551 Reputation points Microsoft Vendor
    2021-04-26T02:59:48.38+00:00

    Hi @AtomXZR ,

    Welcome to Microsoft Q&A!

    Could you tell me what your project type is? Which target framework of your project are you using? .NET Core or .NET Framework?

    You can try the following workarounds:

    1. Create a new project and check if the error occurs in specific project or not.
    2. Use the command: devenv /safemode to run your Visual Studio in safe mode.
    3. Delete the hidden .vs, bin and obj folders in the project folder.

    Sincerely,
    Anna

    • 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.
    4 people found this answer helpful.

  3. Neogame 11 Reputation points
    2021-05-08T17:46:24.827+00:00

    Delete folder inside "%ProgramData%\Microsoft\VisualStudio\Packages_Instances\"

    2 people found this answer helpful.

  4. Sajjan kiran 6 Reputation points
    2021-06-15T14:48:32.45+00:00

    First go to the file explorer's Toolbar, click on View and check the box for hidden files.
    Then go to the project folder's location and delete the hidden .vs directory (since it is a hidden file, it has a lighter text color).

    Don't forget to restart Visual Studio and then rebuild the project, in order to see the changes.

    1 person found this answer helpful.

  5. chalkboardninja 6 Reputation points
    2021-08-12T20:57:19.003+00:00

    I'm using .NET 5.0
    When the error came up, I thought of restarting Visual Studio
    I did it and it worked. So definitely try to restart Visual Studio if the error comes up

    1 person found this answer helpful.