简体   繁体   English

创建“ system.net/defaultProxy”配置部分中指定的Web代理时出错

[英]Error creating the Web Proxy specified in the 'system.net/defaultProxy' configuration section

I get an error when I try to connect to WCF service : 尝试连接到WCF服务时收到错误消息:

"Error creating the Web Proxy specified in the 'system.net/defaultProxy' configuration section." “创建在'system.net/defaultProxy'配置部分中指定的Web代理时出错。”

I'm using framework 2.0 and Visual Studio 2005. My web.config content is : 我正在使用Framework 2.0和Visual Studio2005。我的web.config内容为:

<system.net>
    <defaultProxy>
        <proxy usesystemdefault="true"/>
    </defaultProxy>
</system.net>

My computer has installed: 我的电脑已安装:

  • Microsoft .NET Framework 2.0 Service Pack 2 Microsoft .NET Framework 2.0 Service Pack 2
  • Microsoft .NET Framework 2.0 SDK-ENU Microsoft .NET Framework 2.0 SDK-ENU
  • ( Framework 1.1 , 3,5 and 4.0 ) (框架1.1、3,5和4.0)

I tested : 我测试了:

  • My current working folder is in a localdriver ,and this folder isn't shared. 我当前的工作文件夹位于localdriver中,并且该文件夹未共享。
  • I set all permisions to this folder to my current user. 我将当前文件夹的所有权限都设置为该文件夹。
  • Repair Framework 2.0 ( Windows add and remove programs ) Repair Framework 2.0(Windows添加和删除程序)
  • Other people in development team doesn't have problem when connect to WCF. 开发团队中的其他人连接到WCF时没有问题。
  • If I create blank project and try to connect , I get the same error. 如果创建空白项目并尝试连接,则会出现相同的错误。
  • Also If I Try to create new blank WCF service and try to connect , I get the same error. 另外,如果我尝试创建新的空白WCF服务并尝试连接,则会收到相同的错误。
  • I CAN show service when I type service url in a browser ( no connection problems ) 在浏览器中输入服务网址时,我可以显示服务(无连接问题)
  • Firewall and Antivirus software in my local machine is disabled. 我的本地计算机中的防火墙和防病毒软件已禁用。
  • If I try to connect to service via svcutil.exe "http://server:8080/Service.svc?wsdl" , I get the same error. 如果我尝试通过svcutil.exe“ http:// server:8080 / Service.svc?wsdl”连接到服务,则会收到相同的错误。 ( Can't create web/proxy... ) (无法创建网络/代理...)
  • I suspect that error description doesen't represent the real problem. 我怀疑错误描述不代表真正的问题。 What are the main causes of this error? 此错误的主要原因是什么?

    It's possible that missing some additional software? 有可能缺少一些其他软件吗?

    Thanks for all in advance! 预先感谢大家! I'm getting crazy with this error! 我为这个错误而疯狂!

    Not sure if this helps. 不确定是否有帮助。 I faced a similar issue and the problem was due to invalid default Proxy configuration at following location C:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727\\CONFIG/machine.config 我遇到了类似的问题,该问题是由于以下位置C:\\ Windows \\ Microsoft.NET \\ Framework64 \\ v2.0.50727 \\ CONFIG / machine.config上的默认代理无效所致

    It would depend on the framework you are working against. 这取决于您要使用的框架。

    Hope this helps 希望这可以帮助

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

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