8

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.

Dogg1
  • 151
  • 1
  • 1
  • 13

3 Answers3

8

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.

shuya
  • 99
  • 6
5

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.

Tahir Hassan
  • 5,715
  • 6
  • 45
  • 65
0

I had a similar issue with Visual Studio 2022. I would perform Ctrl + F and it would simply give me a message box saying:

Value cannot be null. Parameter name: textView.

Simply closing and reopening Visual Studio worked to resolve this, if anyone is experiencing this issue.

Jeremy Caney
  • 7,102
  • 69
  • 48
  • 77