I created a GIT repository on GitHub, then created a TFS Project with Git scm and Agile process template, then I chose Import Repository and specified the GitHub URL.
After the TFS Project was created I see an error message in Team Explorer:
Access to the registry key 'HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio15.0_8708a912WorkItemTrackingTeamMenuAddWorkItemMruTFSServer01XYZProjectCollection64c06df7-220f-433c-b7d6-6a59426340e1' is denied.
I get a msgbox with the same error when I try to create work items.
The symptom of the problem is not the root cause; the registry key doesn't even exist so i cant give permission to it:
I saw this related QA but clearing TFS and VS cache dont help.
I ran a ProcessMonitor trace while reproducing the problem and I see the ACCESS DENIED but it points to another REGISTRY A??
So its misleading that it was Denied Access to the Registry Key HKEY_Current_User. But what is this REGISTRYA and where is it located? When I use ProcessMonitor JumpTo it cant find the location in the registry and ends up at ComputerHKEY_CLASSES_ROOTSoftwareMicrosoftWindows
Does anyone know how I can give myself permission to this REGISTRYA?
Note: I am the TFS Admin and an admin of this PC. I've read up on REGISTRYA and Application Hives I just dont know how to give myself access. Also, the GitHub repository was empty when imported to TFS, if that makes a difference. This is an on-premise install of TFS2017 on an Azure server in a VPC.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…