Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2015 Error “Object reference not set to an instance of an object” when creating a new project or opening a project?

Environment:WIN 10 Pro IDE:Visual Studio 2015 Community

When I tried to create a project or open projects,the VS would warn that"Object reference not set to an instance of an object".Andreading the System Log,I found this recording:

Faulting application name: devenv.exe, version: 14.0.23107.0, timestamp: 
0x559b7ead

Faulting Module Name: unknown, Version: 0.0.0.0, time stamp: 0x00000000

Exception code: 0x80131623

Error offset: 0x161c5b8e

Error Process ID: 0x159c

Faulting application start time: 0x01d109944863532a

Faulting application path: D: \ CODESOFT \ Common7 \ IDE \ devenv.exe

Error module path: unknown

Report ID: 71d54c89-2d77-4994-9fac-0d30bd06b3d8

Error package Full name:

Error package relative to the application ID:

Although I spent many times searching in Google or any other websites and trying different ways to solve this question,but now the question is still exists.

like image 308
ElegantOfKing Avatar asked Jan 07 '23 08:01

ElegantOfKing


1 Answers

There could be several reasons for this: corrupted install, faulting extension and so on.

Your error message doesn't necessary help, since it doesn't contain any useful diagnostic information, however it suggests your Visual Studio isn't installed in the "default" location (e.g. Program Files (x86)). It may be that it wasn't installed correctly, or otherwise has corrupt settings.

To try and repair it, I suggest you do the following:

  1. Open the "Develop Command Prompt" in elevated mode (a shortcut should be installed with Visual Studio). If you don't have it in the start menu, open cmd.exe as administrator, and go to where your devenv.exe file is located (in your case, it looks to be D:\CODESOFT\Common7\IDE\)
  2. Run the command devenv /setup, and wait.
  3. Once it's done, try running your Visual Studio again.

If you still have an issue after this, I suggest running a repair installation of Visual Studio.

like image 119
Igal Tabachnik Avatar answered May 19 '23 21:05

Igal Tabachnik