错误:需要代理身份验证 [英] Error : Proxy Authentication Required

查看:366
本文介绍了错误:需要代理身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在我的C#项目中,我从互联网上添加了一个网络参考。它被正确添加。

但是当我调用Web服务的功能时,它会崩溃!出现此错误异常:

远程服务器返回意外响应:(407)需要代理身份验证(ISA Server需要授权才能完成请求。访问Web代理筛选器被拒绝。)。





我更改了Internet选项中的局域网设置,并取消选中使用自动配置脚本框和'为您的LAN使用代理服务器'。

它会出现此错误异常:

 http:// ... 

<没有端点监听div class =h2_lin>解决方案

我的问题通过将我的c#项目的 app.config 中的代码写入配置标记来解决:

< system.net> 
< defaultproxy usedefaultcredentials =true/>
< /system.net>


Hi,
in my C# project, I added a web reference from the internet. It was added correctly.
But when I call the web service's functions, it will crash! with this error exception:

The remote server returned an unexpected response: (407) Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied.  ).



I changed the 'LAN settings' in Internet Options, and Unchecked the boxes 'Use automatic configuration script' and 'Use a proxy server for your LAN' .
It would have this error exception:

There was no endpoint listening at http:// ... 

解决方案

My problem was solved by writing this code in app.config of my c# project, into configuration tag:

<system.net>
  <defaultproxy usedefaultcredentials="true" />
</system.net>


这篇关于错误:需要代理身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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