visual studio 2015 can't connect to p4v, getting "object reference not set to an instance of an object"

1k views Asked by At

System preferences: windows server 2012, visual studio 2015, p4v. My system booted yesterday (probably windows update). Since then, when I open visual studio 2015 IDE and try to connect to an existing workspace I used to connect before, I'm getting p4vs error: "object reference not set to an instance of an object". I have no idea what the problem is.

2

There are 2 answers

0
Guy E On

It was related to the VS <-> P4V adapter which was probably updated and needed to be removed and re-install

0
Amir Gonnen On

This is a P4VS bug, and starts to appear since the plugin is updated automatically.
It seems the bug was introduced on the last version. In order to overcome it just install the previous version of P4Vs:

  • Uninstall P4VS 2016.2
  • Close Visual Studio
  • Download ftp.perforce.com/perforce/r16.1/bin.ntx86/p4vs11.vsix
  • Double click on the p4vs11.vsix to install P4VS 2016.1
  • In order to avoid the automatic update of this extension, open Visual Studio --> Tools --> "Extenstions and Updates" find P4VS extension and uncheck "Automatically update this extension"