.net ServicePointManager 不支持 * 方案的代理

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/954635/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 12:49:08  来源:igfitidea点击:

The ServicePointManager does not support proxies of * scheme

.netweb-servicesproxy

提问by Tub

I've encountered two different variations of this:

我遇到过两种不同的变体:

"The ServicePointManager does not support proxies of proxy scheme" "The ServicePointManager does not support proxies of HTTPS scheme"

“ServicePointManager 不支持代理方案的代理” “ServicePointManager 不支持 HTTPS 方案的代理”

I get this error when a client attempts to connect to our webservices through a proxy. I've encountered this problem with a few clients using proxies, though I have no idea what's causing it. The proxy is set with System.Net.WebProxy and default credentials.

当客户端尝试通过代理连接到我们的网络服务时,我收到此错误。我在一些使用代理的客户端上遇到过这个问题,但我不知道是什么原因造成的。代理设置为 System.Net.WebProxy 和默认凭据。

Using .Net 1.1, with Microsoft.Web.Services2.

使用 .Net 1.1 和 Microsoft.Web.Services2。

Any one know what could be causing this?

有谁知道这可能是什么原因造成的?

回答by Tub

OK. Making sure the proxy address is prefixed with "http://" Seems to have fixed this in all the cases I've come across so far.

好的。确保代理地址以“http://”为前缀似乎在我目前遇到的所有情况下都解决了这个问题。

回答by sigeje

I just run Fiddler with setting Automatically Authenticate on/checked. It worked for me.

我只是运行 Fiddler 并设置自动身份验证打开/选中。它对我有用。