简体   繁体   中英

Visual Studio 2015 shows “Object reference not set to an instance of an object” error on “My Work” tab

At work, I recently migrated from Visual Studio 2013 to Visual Studio 2015 for the solution I work on. I am now running Visual Studio Enterprise 2015, version 14.0.25420.01 Update 3, and things seem to be working fine for the most part, except as follows:

On my team, we use the built-in Visual Studio code reviews functionality for reviewing our work. When I go to the "My Work" tab, where I'd expect to see the code reviews I currently have submitted, it incorrectly says "No code reviews", and at the top top of the tab, there is a banner that says "Object reference not set to an instance of an object". Likewise, the same banner is displayed whenever a new code review is submitted. Below is a screenshot of the "My Work" tab:

我的工作标签

The code review requests are being sent properly, and I get notified when my reviewer has signed off, but once I've submitted a review I can't return to it. Has anyone else experienced this issue?

I had the same issue and found 2 possible solutions:

1- Migrate to Visual Studio 2017

It seems odd, but VS 2017 does NOT have the same behavior. The My Work tab opens normally on the same server/collection/project that has the error on VS 2015.

2- Grant Read and Contribute permissions in Shared Queries to the user facing the problem

To do that follow the steps bellow:

a. Access http://tfsServer:8080/tfs/collectionName/projectName/_workItems/index (change tfsServer , collectionName and projectName accordingly;

b. Access Shared Queries security submenu;

c. Grant Contribute and Read permissions to the user (or group);

Regards.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM