Visual Studio error "Object reference not set to an instance of an object" after install of ASP.NET and Web Tools 2015
Maybe this helps:
- Delete the contents from the following folders:
- C:\Users\%userprofile%\AppData\Local\Microsoft\VisualStudio
- C:\Users\%userprofile%\AppData\Local\Microsoft\VSCommon
- Sometimes, you need to go to:
- [x64] C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
- [x86] C:\Program Files\Microsoft Visual Studio 14.0\Common7\IDE
and run devenv /resetuserdata
.
Expect, that all of your user settings such as Visual Studio layout, linked Microsoft account or start page might disappear.
Delete %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentModelCache
and restart Visual Studio.
Alternatively, use the Clear MEF Component Cache extension.
For me,
- I ended the process in Windows Task Manager:
VsHub.exe
. - Restarted Visual Studio.
After that, everything works like a charm again!
I solved it doing
run devenv /resetuserdata
in this path:
[x64] C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
I assume that in x86 it works in this path:
[x86] C:\Program Files\Microsoft Visual Studio 14.0\Common7\IDE