当连接到网络无法访问Web服务:: HTTP 407 [英] Can't access web service when connected to the network :: HTTP 407

查看:907
本文介绍了当连接到网络无法访问Web服务:: HTTP 407的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Web服务通信的控制台应用程序。他们两人都是在同一台机器上。



当我访问与LAN禁用Web服务,它连接没有问题。但是,如果LAN已启用并连接到我们的办公网络,我收到此错误:



HTTP 407代理身份验证 - ISA服务器需要授权来满足请求。访问Web代理服务被拒绝。



我们已经现在狩猎问题的根源三天。我们尝试了,我们能想到的一切。任何想法什么导致了问题。



补充说明:
- 本机是在工作组中设置但是DNS后缀(computer.local)。当访问Web服务,我们作为键入地址的http://machine.computer.local/service.asmx




  • 我跟IT人员,他们说,我们没有安装一个ISA服务器


  • 有没有代理在IE中设置。


  • 本机是在清新的环境。



解决方案

显然,我已经交谈过的IT人员没有意识到企业范围的ISA服务器。



使用Wireshark的,我甩的数据的HTML文件(一个标准的HTTP 407错误页面)。它清楚地表明了主机名和ISA服务器的IP地址。



总之,问题是在ISA服务器。虽然它仍是为什么如果托管的网站上的IIS服务器所在的机器本身(本地主机)上机将联系ISA服务器是一个谜



解决方法:使用该bypassonlocal财产





<预类=郎咸平的XML prettyprint-覆盖> <结构>
< system.net>
< defaultProxy>
<代理proxyaddress =< ISA-SERVER>中bypassonlocal =真/>
< / defaultProxy>
< /system.net>
< /结构>


I have a console application that communicates with a web service. Both of them are on the same machine.

When I am accessing the web service with the LAN disabled, it connects without a problem. But if the LAN is enabled and connected to our office network, I receive this error:

"HTTP 407 Proxy Authentication required - The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied."

We've been hunting the source of the problem for three days now. We have tried everything that we can think of. Any ideas what's causing the problem?

Additional notes: - The machine is in a Workgroup setup but with DNS suffix (computer.local). When accessing the web service, we type the address as "http://machine.computer.local/service.asmx"

  • I talked to the IT guys and they said that we don't have an ISA server installed

  • There is no "proxy" set in IE.

  • The machine is in mint condition.

解决方案

Apparently, the IT guys that I've talked with is not aware of the corporate-wide ISA server.

Using Wireshark, I dumped the data to an HTML file (a standard HTTP 407 error page). It clearly showed the Hostname and IP address of the ISA server.

In short, the problem is the ISA server. Although it is still a mystery on why the machine would contact the ISA server if the IIS server hosting the site is located on the machine itself (localhost).

Workaround: Use the bypassonlocal property.

<configuration>
   <system.net>
      <defaultProxy>
         <proxy proxyaddress="<ISA-SERVER>" bypassonlocal="true"/>
      </defaultProxy>
   </system.net>
</configuration>

这篇关于当连接到网络无法访问Web服务:: HTTP 407的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆