TFS API是否需要Visual Studio? [英] Does TFS API require Visual Studio?
问题描述
我正在尝试使用C#使用TFS API进行签入,签出,GetLatest等操作.对于开发PC和Admin用户,此操作无懈可击.但是,在未安装VS 2010且TFS用户为非管理员的专用机器上,此操作无效.我收到以下错误:*
I am trying to check in, check out, GetLatest, etc. with the TFS API using C#. For the development PC and an Admin user this works flawlessly. however, on a dedicated maschine without VS 2010 installed and the TFS user being a non-Admin this does nto work. I get the following error: *
访问注册表项'HKEY_CURRENT_USER \ Software \ Microsoft \ VisualStudio \ 10.0'被拒绝.2012-10-08 14:58:30 [...]错误:在Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode,String str)
在Microsoft.Win32.RegistryKey.CreateSubKey(String子项,RegistryKeyPermissionCheck权限检查,RegistrySecurityRegistrySecurity),网址为Microsoft.TeamFoundation.Client.UIHost.get_UserRegistryRoot()在Microsoft.TeamFoundation.VersionControl.Client.Workstation.get_GetLatestOnCheckout()
Access to the registry key 'HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0' is denied. 2012-10-08 14:58:30 [...] error : at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
at Microsoft.Win32.RegistryKey.CreateSubKey(String subkey, RegistryKeyPermissionCheck permissionCheck, RegistrySecurity registrySecurity) at Microsoft.TeamFoundation.Client.UIHost.get_UserRegistryRoot() at Microsoft.TeamFoundation.VersionControl.Client.Workstation.get_GetLatestOnCheckout()
*
我想知道这是否与管理员权限有关?TFS的用户"实际上是一个在该帐户下运行的网站,因此它应该是并且不应该是管理员.
I wonder if this has to do with Administrator rights? The TFS "user" is actually a website running under that under account, so it is and is not supposed to be an Admin.
我尝试在同一台机器上运行具有我自己的凭据的测试控制台应用程序,并且它可以正常工作.这是凭据.
I tried running a test console app with my own credentials on the same maschine, and it works. So this is a credentials.
任何人都可以帮忙吗?将网站用户帐户设置为管理员就足够了吗?
Can anyone help? Is it enough to make the website user account an Admin?
并且:创建本地工作区时它想访问注册表吗?
推荐答案
当您在应用程序池标识下运行网站,但应用程序池标识设置为不加载用户配置文件时,我们已经看到这种错误.因此没有HKCU注册表访问权限).
We've seen this kind of error when you are running a website under the application pool identity but the application pool identity is set to not load the user profile (and therefore has no HKCU registry access).
在IIS的高级设置下,设置加载用户配置文件" = True
In IIS, under the advanced settings, set "Load User Profile"=True
请参见 ..有关更多信息.
这篇关于TFS API是否需要Visual Studio?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!