远程服务器返回错误:(407)需要代理身份验证。

编程入门 行业动态 更新时间:2024-10-20 21:00:54
本文介绍了远程服务器返回错误:(407)需要代理身份验证。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在调用Web服务的应用程序上工作。实际上它是https网络服务。当我通过IE或其他浏览器调用Web服务的方法时,它完美无缺。我写了win表单应用程序来连接Web服务。结果我得到"远程服务器返回错误:(407)需要代理验证。"错误。所有呼叫我的环境都是通过代理进行的。 application.config文件中的几行解决了这个问题:

< system > < defaultProxy 启用 = " 真的" useDefaultCredentials = " true " />< / system > 但我需要从"服务器"调用Web服务。我申请的一部分。服务器部分在IIS下运行。当我从我的"服务器"调用https Web服务时,错误返回。 winform的修复不起作用。 有任何建议吗?

<system><defaultProxyenabled="true" useDefaultCredentials="true" /></system>But I need to call to the web service from a "server" part of my application. The server part runs under IIS. And when I call to https web service from my "server", the error returns back. The fix for a winform does not work.Any advice?

推荐答案

ASP.NET中的等效配置文件是 web.config 。将该信息放在您网站的web.config中,它将生效。请参阅 msdn.microsoft/en-us/library/ms178683.aspx etc(你可以把它放在全局的machine.config文件中,但这可能有点粗糙......) The equivalent config file in ASP.NET is web.config .  Put that information in the web.config for your website and it will take effect.  See msdn.microsoft/en-us/library/ms178683.aspx etc  (You could instead put in in the global machine.config file, but that may be a bit crude...)

更多推荐

远程服务器返回错误:(407)需要代理身份验证。

本文发布于:2023-11-08 07:16:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1568701.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:身份验证   错误   服务器

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!