Unable to open up any file in my Visual studio project file, throws error: "Object reference not set to an instance of an object"

Sivaraman, Ramkumar 0 Reputation points
2024-12-12T22:51:02.1933333+00:00

I built the project (a csharp project with c++ interface.) I am able to open the files listed in the solution explorer. However, when I search any "words" that exist in the proeject, the finder does not retrieve correct results. Also, after closing the find tab, when I try to open any file in the project, it throws the error as mentioned. Also on the top bar in the IDE, I see this message.
"Visual Studio run into an unexpected problem, and may affect some project system functions. (Open log file)" I tried to delete temp folders as mentioned in this thread. Also rebooted the system., clean and rebuilt the solution again. But still I m seeing this error. Attaching the log file.

Using Microsoft Visual Studio Professional 2019

Version 16.11.42

dotNet Framework: 4.8.09037

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

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 30,386 Reputation points Microsoft Vendor
    2024-12-13T03:33:58.8166667+00:00

    Hi @Sivaraman, Ramkumar, 

    Welcome to Microsoft Q&A! 

    Have you tried to repair your VS2019? You can repair it with Visual Studio Installer > More > Repair

    You can right-click your project node in the Solution Explorer > Unload Project > right-click your project again > Reload Project. 

    If it doesn’t work, please enter “devenv /ResetSettings” at Developer Command Prompt to restore your Visual Studio default setting. 

    Besides, you can create a new project and check if you have the same issue. 

    Sincerely,

    Anna


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

     


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.