Unable to shelve changes in VS2012 for TFS2010

2019-02-20 02:05发布

We are using TFS2010 (for source control only), and until recently everyone was using VS2010. Our developers just installed VS2012.

Pulling down code works fine in Visual Studio. When you go to "Pending Changes" in Team Explorer, we are seeing TF201072: A user or group could not be found. Verify that the users and groups used in your work item type definition have been added to Team Foundation Server., twice, at the top. We can still check-in code from VS - seems this error is ignored.

However, we are unable to shelve changes - when you attempt to shelve, the same error comes up in a popup, and the shelveset is not saved.

We can shelve using the command prompt (tf shelve), and can still shelve using VS2010, so it doesn't seem to be a permission issue. Also, the TFS administrator is not seeing the error message, and can shelve from VS2012 with no error.

Any thoughts as to what could be causing VS to error out here? We've tried clearing out the TFS cache, creating a new workspace, and gone over every option we could find in Visual Studio.

1条回答
手持菜刀,她持情操
2楼-- · 2019-02-20 02:50

I had the same issue. Tried many different stuff from web sites and non of them helped. Finally find the solution for this. Follow these to make it work:

1) Create temporary AD User

2) You will need to transfer all old user configuration into a new temporary account. If you are OK with using the temporary account you may just keep it and get rid of old account. Go into the machine that TFS is installed and Run this command: TFSConfig identities /change /fromdomain:mydomain /todomain:mydomain /account:oldAccount /toaccount:temporaryAccount

(TFSConfig is in C:\Program Files\Microsoft Team Foundation Server XX.0\Tools\)

3) If you don't want to use temporary account you will need to convert from temp account to your old account. To do that run the same command wit changing the user names: TFSConfig identities /change /fromdomain:mydomain /todomain:mydomain /account:temporaryAccount /toaccount:oldAccount

That's all you need to do.

查看更多
登录 后发表回答