问题描述
在 Visual Studio 中(无论是 2013 Professional、2013 Community 还是 2015 Community,它们在不同地方的不同机器上以及家庭、办公室、朋友处等网络上的行为都相同)似乎无法访问我的登录信息并要求我重新输入用户名和密码.下面是留言截图,后面是粗略翻译,因为我用的是德文版:
In Visual Studio (no matter if 2013 Professional, 2013 Community or 2015 Community, they all behave the same on different machines in different places and networks like home, office, friends' places) can't seem to access my login information and asks me to re-enter user and password. Here is a screenshot of the message, followed by a rough translation because I use the German version:
翻译:发生错误,无法访问[电子邮件地址]"的用户信息.重新输入此帐户的登录信息.(链接:重新输入登录信息)(带有我正确实时 ID 的框)"
Translation: "An error occured, and no user information could be accessed for "[email address]". Re-enter your login information for this account. (Link: Re-enter login information)(box with my correct live id)"
我还没有找到一种方法来获取有关在何处、何时或为什么发生什么错误的任何详细信息,这无济于事.显然,它确实保存了我使用的帐户,但如果每天至少重新登录一次,依赖它的功能(例如访问我的帐户有权访问的 TFS 存储库)将不起作用.它似乎与我上次登录以来的时间有一些关联,因为即使在重新启动机器后,如果我之前登录过它仍然可以正常工作.
I haven't found a way to get any details about what error occured where and when or why, which doesn't help. Apparently it does save which account I use, but without re-entering my log-in at least once a day, functions that rely on it (e.g. accessing TFS repositories that my account has rights to) do not work. It seems to have some correlation to the time since I last logged in, because even after rebooting the machine it still works correctly if I logged in before.
这并没有妨碍我工作,但还是很烦人.我在谷歌上花了很多时间,但是当我寻找诸如visual studio login error"之类的关键字或类似的合适的东西时,我发现了各种主要关于 Visual Studio Online 的页面,或者解释如何在 Visual Studio 中登录的页面- 没有提到这个问题,所以我想这不是一个很常见的问题.
It's not preventing me from work, but it's still very annoying. I've spent quite some time on google, but when I look for keywords like "visual studio login error" or similar fitting things I find all kinds of pages mainly about Visual Studio Online, or pages that explain how to login inside of Visual Studio - nothing mentions this problem, so I suppose it isn't a very common one.
我在所有地方的互联网连接通常都非常稳定,其他打开的应用程序没有显示任何连接问题的迹象,所以我几乎可以排除这个原因.
My internet connection in all places is usually pretty stable, and no other open application show any signs of connection problems, so I can all but rule that out as the cause.
花了一段时间,但似乎只有在我切换Visual Studio版本时才出现问题.即,如果我只使用 2013 一段时间,它工作正常.如果我使用 2015 登录,之后再次使用 2013 时会出现错误,反之亦然.
It took a while, but it seems to be a problem only when I switch versions of Visual Studio. I.e., if I only use 2013 for a while, it works fine. If I then login with 2015, I get the error when I use 2013 again after that, and vice versa.
推荐答案
我通过允许visual studio 通过windows 防火墙,然后重新启动visual studio 解决了这个问题.它源于 Visual Studio 的某些部分无法访问身份验证服务器.
I've fixed this issue by allowing visual studio through the windows firewall, then restarting visual studio. It stems from parts of visual studio not having access to the authentication servers.
- 按 windows 键并搜索防火墙"并选择允许通过windows防火墙程序
- 点击允许其他程序..."
- 从程序列表中选择 Visual Studio 并点击添加
- 重启(或启动)Visual Studio
这篇关于切换版本后,Visual Studio 未对我进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!