Visual Studio Internet连接失败

时间:2010-01-12 18:33:19

标签: visual-studio visual-studio-2008 internet-connection

昨晚我的Visual Studio工作正常。今天它无法连接到互联网(无法下载RSS源或连接到我的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 reset”+ reboot

任何建议都将受到赞赏。


更多信息:
当我尝试连接到我的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..

我不知道这意味着什么

2 个答案:

答案 0 :(得分:5)

这个问题很相似:

TFS cannot retrieve the list of team projects

我不知道为什么会破坏或真正的“修复”是什么,但这是在该线程中的工作(不是接受的答案,但应该是)。

注释掉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想出这个问题!

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

答案 1 :(得分:0)

您是否尝试过卸载Reshaper?

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