无法创建TFS工作项目,拒绝访问不存在的注册表项 [英] Cant create TFS Work Items, Denied Access to registry key that doesn't exist
问题描述
我在GitHub上创建了一个GIT仓库,然后创建了一个包含Git scm和Agile流程模板的TFS项目,然后我选择了导入仓库并指定了GitHub URL。
创建TFS项目后,我在Team Explorer中看到一条错误消息:
访问注册表项' HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\15.0_8708a912\WorkItemTracking\TeamMenu\AddWorkItemMru\TFSServer01\XYZProjectCollection\64c06df7-220f-433c-b7d6-6a59426340e1'被拒绝。
当我尝试创建工作项目时,出现msgbox时出现同样的错误。
症状问题不是根本原因;注册表项不存在所以我不能授予它的权限:
我看到了相关的
所以它的误导性在于它拒绝访问注册表项HKEY_Current_User。但是,这是什么REGISTRY?A,它位于哪里?当我使用ProcessMonitor JumpTo 时,它无法在注册表中找到该位置,最终在Computer \HKEY_CLASSES_ROOT\Software\Microsoft\Windows
< 有人知道我可以给我这个注册局的许可吗? 注意:我是TFS管理员和这台PC的管理员。我已经阅读 a>在REGISTRY \A和Application Hives上我只是不知道如何让自己进入。另外,如果导入到TFS,GitHub存储库是空的,如果这有所帮助。这是在VPC中的Azure服务器上的TFS2017的内部部署安装。 解编方案
编辑应用程序蜂巢。参考:访问Visual Studio 2017的私人注册表配置单元
此键似乎存储在VS应用程序配置单元文件中:
C:\ Users \< user name> \AppData\Local\Microsoft\VisualStudio\15.0_05fc10d7\privateregistry.bin
以管理员身份启动 regedit
,将配置单元文件(privateregistry。 user .bin)加载到注册表编辑器中:
- 启动RegEdit.exe
- 选择左侧窗格中的Computer \HKEY_LOCAL_MACHINE节点
- 选择文件|加载Hive ...菜单项并加载私人注册表 user .bin
- 当提示输入密钥名称时,只需键入VSRegHive / li>
- 这会将数据加载到HKLM节点下的VSRegHive中
-
要解决此问题,请创建丢失的键或编辑现有的键
-
完成后选择VSRegHive并选择
文件|卸载Hive ...,然后退出RegEdit.exe实用程序,否则
VS将无法启动。将注册表保存在注册表编辑器中会创建一些
类型的锁,以防止DevEnv.exe启动。
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_USER\Software\Microsoft\VisualStudio\15.0_8708a912\WorkItemTracking\TeamMenu\AddWorkItemMru\TFSServer01\XYZProjectCollection\64c06df7-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 REGISTRY\A and where is it located? When I use ProcessMonitor JumpTo it cant find the location in the registry and ends up at Computer\HKEY_CLASSES_ROOT\Software\Microsoft\Windows
Does anyone know how I can give myself permission to this REGISTRY\A?
Note: I am the TFS Admin and an admin of this PC. I've read up on REGISTRY\A 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.
To edit a Application Hive. Ref: Access Visual Studio 2017's private registry hive
This key appears to be stored in VS application hive file:
C:\Users\<user name>\AppData\Local\Microsoft\VisualStudio\15.0_05fc10d7\privateregistry.bin
Start regedit
as admin, load the hive file (privateregistry.user.bin) into regedit :
- Launch RegEdit.exe
- Select the Computer\HKEY_LOCAL_MACHINE node in the left-hand pane
- Select the File | Load Hive... menu item, and load the privateregistry.user.bin
- When prompted for a key name, just type in something like "VSRegHive"
- This will load the data into a VSRegHive under the HKLM node
To fix the problem either create the missing keys or edit existing ones
When finished select the VSRegHive and select File | Unload Hive... , before exiting the RegEdit.exe utility, otherwise VS will fail to start. Keeping the hive loaded in regedit creates some sort of lock that prevents DevEnv.exe from launching.
这篇关于无法创建TFS工作项目,拒绝访问不存在的注册表项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!