无法解决错误HTTP状态407:需要代理身份验证

编程入门 行业动态 更新时间:2024-10-21 03:55:04
本文介绍了无法解决错误HTTP状态407:需要代理身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在ASP.NET 2.0中有一个Web应用程序,它反过来调用驻留在同一台机器上的Web服务(在.NET 2.0中为wrtten)。在调用Web服务时,我在Web应用程序中收到以下错误。我已经在服务器中部署了这个appl。 请求因HTTP状态失败407:需要代理身份验证(ISA Server需要授权才能完成请求。拒绝访问Web 代理服务。)。 在System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage消息,WebResponse响应,Stream responseStream,Boolean asyncCall)在System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(字符串 methodName,Object []参数) 需要注意的一点是: - Web应用程序和Web服务在一个共同的应用程序池下运行 - 应用程序池在公共域级服务帐户下运行 - Web应用程序和Web服务都在两个单独的网站下设置为单独的虚拟目录 - 这两个网站都使用单独的DNS主机条目和正在运行的端口80 - 使用Windows Integrated Auth.Anonymous Auth的两个站点都已关闭。

相同的代码库在单独的服务器上完全正常工作,具有相似的配置。 有关配置中应该交叉检查的内容的任何指示。我相当确定这不应该是代码问题。

解决方案

您好Saurangshu,今天我遇到了同样的问题,我找到解决方案来解决它。 访问以下链接以查看解决方案: social.msdn.microsoft/Forums/en-US/netfxnetcom/thread/c603068f-1527-4530-9209-49251f8dcd31 希望它有所帮助

I have got a web appl in ASP.NET 2.0 which in turn calls a web service (wrtten in .NET 2.0) residing in the same machine. While calling the web service i get the below error in the web appl. I have deployed this appl in a server. The request failed with HTTP status 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. ). at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) Some points to note are: - The web application and the web service run under a common application pool - The application pool is running under a common domain level service account - Both the web appl and the web service are set as separate virtual directories under two separate websites - Both these web sites use separate DNS Host entries and are running on Port 80 - Both the sites using Windows Integrated Auth.Anonymous Auth is turned off.

The same code base is working absolutely fine on a separate server with similar configurations made. Any pointers on what should be crosschecked in the configurations. Am pretty sure this should not be a code issue.

解决方案

Hi Saurangshu, Today i got the same problem with you, i have found solution to resove it. visit following links to see solutions: social.msdn.microsoft/Forums/en-US/netfxnetcom/thread/c603068f-1527-4530-9209-49251f8dcd31Hope it is helpful

更多推荐

无法解决错误HTTP状态407:需要代理身份验证

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

发布评论

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

>www.elefans.com

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