Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error message 'Value cannot be null. Parameter name: userContext' in Visual Studio 2017

I get error message

'Value cannot be null. Parameter name: userContext'

in Visual Studio 2017 when trying to click notification or opening Extensions and updates from tools folder. Before answering can you look this Answer. The answer did not work on me.

like image 852
Dogg1 Avatar asked Aug 07 '17 13:08

Dogg1


Video Answer


2 Answers

I had same problem to. My solution is quite similar from Tahir Hassan.

  1. Go to ...AppData\Local\Microsoft\VisualStudio\15.0...\ delete the file "privateregistry.user.bin"

  2. Start Visual Studio -> VS only ask to sign in or not.

You don't have to download any updates after that.

like image 82
shuya Avatar answered Nov 25 '22 13:11

shuya


I had this problem. Close VS, go to %LOCALAPPDATA%\Microsoft\VisualStudio\ and delete/rename a folder whose name starts with 15.0_.

Then start Visual Studio, then download and install the latest update.

After that it should work - Best of luck.

like image 28
Tahir Hassan Avatar answered Nov 25 '22 14:11

Tahir Hassan