简体   繁体   English

TF30063: 您无权访问 Collection。 Nuget 和 Tfs 冲突

[英]TF30063: You are not authorized to access Collection. Nuget and Tfs conflicting

Latest Comment最新评论

I believe my problem occurs when using Nuget, however, if you are reading because of the TF30063 error.我相信在使用 Nuget 时会出现我的问题,但是,如果您因为 TF30063 错误而正在阅读。 Have a look at the answer I provided and accepted.看看我提供并接受的答案。

Original Post原帖

I am getting this error message when I try to check out.当我尝试结帐时收到此错误消息。 This happens randomly and can occur even if minutes ago the same instance of visual studio allowed me to check something else out for edit.这是随机发生的,即使几分钟前 Visual Studio 的同一个实例允许我检查其他内容以进行编辑,也可能发生这种情况。在此处输入图像描述

The current workaround is to reopen VS2010.当前的解决方法是重新打开 VS2010。

Using W7x64, vs2010 ultimate with TF2010 and sql2008 on my local dev machine.在我的本地开发机器上使用 W7x64、vs2010 Ultimate 和 TF2010 和 sql2008。 I am not part of a domain.我不是域的一部分。 I am the administrator of this computer.我是这台电脑的管理员。

Additional 2011-08-09附加 2011-08-09

When the problem occurrs, I "close solution" under file.当问题发生时,我在文件下“关闭解决方案”。 And then reopen the solution.然后重新打开解决方案。 I then get a uid/pwd box.然后我得到一个 uid/pwd 框。 I put my admin uid/pwd into it and then get a further error message.我将我的管理员 uid/pwd 放入其中,然后收到进一步的错误消息。 Again, closing vs2010 and reopening solves the issue.同样,关闭 vs2010 并重新打开解决了这个问题。

在此处输入图像描述在此处输入图像描述

Additional: 2011-08-30补充:2011-08-30

I believe this has to do with nuget.我相信这与 nuget 有关。 I have provided an answer and so far after many months I have not had a TFS error.我已经提供了一个答案,到目前为止,几个月后我还没有出现 TFS 错误。 Where I should have had an error given the types of operations I have been performing which were identical to the scenarios making it fail.鉴于我一直在执行的操作类型与导致它失败的场景相同,我应该在哪里出错。

I noticed that the problem occurred mostly after i installed a nuget package.我注意到问题主要发生在我安装 nuget package 之后。 After adding a nuget package i found that I could not check out.添加 nuget package 后,我发现我无法签出。 Restarting Visual Studio helped.重新启动 Visual Studio 有帮助。

Based on this discussion:基于此讨论:

http://nuget.codeplex.com/discussions/254328 http://nuget.codeplex.com/discussions/254328

i used this solution which appears to be working:我使用了这个似乎有效的解决方案:
(I have copied the solution here if ever the webpage disappears) (如果网页消失,我已经在此处复制了解决方案)

Control Panel / Internet Options / Security Tab
Select "Local Intranet"
Click Sites button
Click Advanced Button
Add your TFS server http address to the list. e.g. http://tfs
Restart Visual Studio

Source: http://blog.rthand.com/post/2011/08/26/Fixing-combination-of-NuGet-and-Team-Foundation-in-workgroup-configuration-401-Unauthorized.aspx (Go straight down to The Solution half way down).资料来源: http://blog.rthand.com/post/2011/08/26/Fixing-combination-of-NuGet-and-Team-Foundation-in-workgroup-configuration-401-Unauthorized.aspx (直接下到The Solution半途而废)。

Don't let the Internet Options part fool you.不要让 Internet 选项部分欺骗您。 I do not use Internet Explorer and this solved my issue.我不使用 Internet Explorer,这解决了我的问题。

I found this issue and the accepted solution didn't work for me.我发现了这个问题,并且接受的解决方案对我不起作用。 For me the problem occurred when trying to add a NuGet package to my project (through either the console or the GUI) and it would show the login prompt but not accept my user/password.对我来说,尝试将 NuGet package 添加到我的项目(通过控制台或 GUI)时出现问题,它会显示登录提示但不接受我的用户/密码。 It would try around 4 times and then fail and roll back the installation.它会尝试大约 4 次,然后失败并回滚安装。

It turns out for me the issue was that I had Fiddler open and as soon as I closed it (to undo the proxy settings) I was then able to install the package without any issue.对我来说,问题是我打开了 Fiddler,一旦我关闭它(撤消代理设置),我就可以毫无问题地安装 package。 I didn't even have to restart Visual Studio to get it working.我什至不必重新启动 Visual Studio 即可使其正常工作。

Just thought I'd share this for the next person who comes across this issue.只是想我会为遇到这个问题的下一个人分享这个。

I want to add a solution for people who are using VisualStudio online.我想为在线使用 VisualStudio 的人添加一个解决方案。 My problem was that I was logged into VS2013 with the wrong Microsoft Account.我的问题是我使用错误的 Microsoft 帐户登录 VS2013。

I would like to point that the accepted solution didn't work for me - probably it is for IE users.我想指出,公认的解决方案对我不起作用——可能它适用于 IE 用户。

My fix was to "clear the package cache"我的解决方法是“清除 package 缓存”

  1. Open VS打开VS
  2. Go to Tools-> Options Go 到工具-> 选项
  3. Open "NuGet Package Manager" and select General打开“NuGet Package 管理器”和 select 通用
  4. Click in the button: "clear the package cache"点击按钮:“清除package缓存”

When I had this problem I checked Event Viewer on my TFS machine and it showed a bunch of insufficient permissions Windows Sharepoint Service errors.当我遇到这个问题时,我在我的 TFS 机器上检查了事件查看器,它显示了一堆权限不足 Windows Sharepoint 服务错误。 I ended up just disabling the Sharepoint aspects of TFS since I wasn't using them anyways.我最终只是禁用了 TFS 的 Sharepoint 方面,因为无论如何我都没有使用它们。

Got the error TF30063: You are not authorized to access Collection when comparing or merging the solutions in tfs 2012. I found that enabling and disabling the windows authentication in IIS did randomly fix the error but found the disk space issue, Once i cleared it, and enabled the windows authentication for TFS in IIS, it was a fix for me.! Got the error TF30063: You are not authorized to access Collection when comparing or merging the solutions in tfs 2012. I found that enabling and disabling the windows authentication in IIS did randomly fix the error but found the disk space issue, Once i cleared it,并在 IIS 中为 TFS 启用了 windows 身份验证,这对我来说是一个修复。! -Pasha -帕夏

This answer got me far enough to solve:这个答案让我足够解决:

Control Panel / Internet Options / Security Tab Select "Local Intranet" Click Sites button Click Advanced Button Add your TFS server http address to the list.控制面板/Internet 选项/安全选项卡 Select “本地 Intranet” 单击站点按钮 单击高级按钮 将您的 TFS 服务器 http 地址添加到列表中。 eg http://tfs Restart Visual Studio例如http://tfs重启 Visual Studio

On our internal network, for some reason, our computers don't always recognize other computers as being part of the domain - resulting in connections being sporadic/intermittent.在我们的内部网络上,出于某种原因,我们的计算机并不总是将其他计算机识别为域的一部分 - 导致连接是零星的/断断续续的。 My user had a restricted list set by domain policy, so I couldn't edit it.我的用户有一个由域策略设置的受限列表,所以我无法编辑它。 However, I could change the connection from just the computer name to the computer's fully qualified domain name and that appears to have solved the problem.但是,我可以将连接从仅计算机名称更改为计算机的完全限定域名,这似乎解决了问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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