Vac*_*ano 2 internet-connection visual-studio-2008 visual-studio
昨晚我的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),它与没有问题的同事一样.
我尝试过的事情:
任何意见,将不胜感激.
更多信息:
当我尝试连接到我的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..
我不知道这意味着什么
这个问题很相似:
我不知道为什么这会破坏或真正的"修复"是什么,但这是在该线程中的工作(不是接受的答案,但应该是).
在Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe.config中注释掉system.net设置.像这样:
<system.net>
<!-- <settings>
<ipv6 enabled="true"/>
</settings>
-->
</system.net>
Run Code Online (Sandbox Code Playgroud)
感谢John Cheng想出这个!
(如果有人发现为什么会发生这种情况以及真正的解决方案是什么,我会接受这个答案.)