Visual Studio 互联网连接失败

发布于 2024-08-18 00:00:08 字数 1292 浏览 1 评论 0原文

昨晚我的 Visual Studio 工作正常。今天它无法连接到互联网(无法下载 rss feed 或连接到我的 TFS 服务器)。

我的互联网连接工作正常(我用它来写这篇文章)。

什么可能导致这种情况?我可以通过设置来修复它吗?

我唯一的线索是 Resharper 给了我一些奇怪的错误。

System.ArgumentException: Invalid XML. Missing required tag  for type 'System.Security.Policy.PolicyStatement'.
System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for system.net/settings: Invalid XML. Missing required tag  for type 'System.Security.Policy.PolicyStatement'. (C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe.Config line 155) ---> System.ArgumentException: Invalid XML. Missing required tag  for type 'System.Security.Policy.PolicyStatement'.

我已经检查了它提到的文件(devenv.exe.Config),它与没有问题的同事相同。

我尝试过的事情:

  • 禁用 Resharper
    • 使错误消息消失,但不能解决问题。
  • 重新启动
  • 系统还原
  • “netsh Winsock重置”+重新启动

任何建议将不胜感激。


更多信息:
当我尝试连接到我的 TFS 服务器时,出现此错误:

TF31001: Team Foundation cannot retrieve the list of team projects from Team Foundation Server MyTFSServer. The Team Foundation Server returned the following error: Error creating the Web Proxy specified in the 'system.net/defaultProxy' configuration section..

我不知道这意味着什么

Last night my Visual Studio was working fine. Today it fails to connect to the internet (can't download rss feeds or connect to my TFS Server).

My internet connection is working fine (I am using it to write this).

What could cause this? Are there settings that I can get at to fix it?

The only clue I have is that Resharper is giving me some weird errors.

System.ArgumentException: Invalid XML. Missing required tag  for type 'System.Security.Policy.PolicyStatement'.
System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for system.net/settings: Invalid XML. Missing required tag  for type 'System.Security.Policy.PolicyStatement'. (C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe.Config line 155) ---> System.ArgumentException: Invalid XML. Missing required tag  for type 'System.Security.Policy.PolicyStatement'.

I have checked the file it mentions (devenv.exe.Config) and it is the same as a coworkers who is having no issues.

Things I have tried:

  • Disabling Resharper
    • Causes the error message to go away, but does not fix the issue.
  • Rebooting
  • System Restore
  • "netsh Winsock reset" + reboot

Any advice would be appreciated.


More info:
When I try to connect to my TFS Server I get this error:

TF31001: Team Foundation cannot retrieve the list of team projects from Team Foundation Server MyTFSServer. The Team Foundation Server returned the following error: Error creating the Web Proxy specified in the 'system.net/defaultProxy' configuration section..

I have no idea what that means

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

雨巷深深 2024-08-25 00:00:08

这个问题是类似的:

TFS无法检索团队列表 我不知道为什么会出现这种情况,也不知道

真正的“修复是什么”,但这是该线程中的解决方法(不是公认的答案,但应该是)。

注释掉 Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe.config 中的 system.net 设置。像这样:

<system.net>
<!-- <settings>
        <ipv6 enabled="true"/>
     </settings>
 -->
</system.net>

感谢 John Cheng 解决了这个问题!

(如果有人发现为什么会发生这种情况以及真正的解决办法是什么,我会接受这个答案。)

This question was similar:

TFS cannot retrieve the list of team projects

I have no idea why this broke or what the real "Fix is" but here is the work around in that thread (not the accepted answer, but should be).

Comment out the system.net setting within the Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe.config. Like this:

<system.net>
<!-- <settings>
        <ipv6 enabled="true"/>
     </settings>
 -->
</system.net>

Kudos to John Cheng for figuring this out!

(If anyone finds out why this happens and what the real fix is I will accept that as the answer.)

失眠症患者 2024-08-25 00:00:08

您是否尝试过卸载 Reshaper?

也许在那之后“修复”Visual Studio?也许重新安装 VS2008 SP1 可能会有所帮助。

Have you tried uninstalling Reshaper?

Perhaps "Repairing" Visual Studio after that? Perhaps a reinstall of SP1 for VS2008 might help.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文