【问题标题】:The remote name could not be resolved: Error adding third party webservice to my web application无法解析远程名称:将第三方 Web 服务添加到我的 Web 应用程序时出错
【发布时间】:2014-04-03 21:40:57
【问题描述】:

我在尝试从第三方 url 下载 wsdl 文件时遇到错误。

错误:

There was an error downloading 'https://xxxxx.com/wsdl/Object/CustomObjectInstances?Id=xxxx'.
The remote name could not be resolved: 'xxx.xxxx.xxx'
Metadata contains a reference that cannot be resolved: 'https://xxxxx.com/wsdl/Object/CustomObjectInstances?Id=xxxx'.
There was no endpoint listening at https://xxxxx.com/wsdl/Object/CustomObjectInstances?Id=xxxx that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
The remote name could not be resolved: 'xxx.xxxx.xxx'
If the service is defined in the current solution, try building the solution and adding the service reference again.

我的发现:

1.我已经构建了解决方案并尝试添加服务引用(同样的错误)。
2.错误中的IP看起来很奇怪(xxx.xxxx.xxx)。只有三个部分。

【问题讨论】:

  • 如果消息是正确的并且您没有网络相关的问题,您将不得不询问您的第三方,这不是您可以解决的技术问题。
  • @nvoigt。使用相同的 url 我的团队成员之一可以下载 Wsdl。我需要更改任何 visualstudio 道具吗?
  • 如果它可以被其他人下载,在这种情况下,您是否可以检查是否有任何防火墙/不同的代理以确保没有阻止请求?
  • @LakshmiNarayanan,但是我可以把 url 放到 IE 中,可以看到服务细节(XML)。那么还是防火墙问题?

标签: c# visual-studio-2010 web-services


【解决方案1】:

为应用程序池用户添加对 C:\Windows\Temp 的写入权限,它应该可以解决您的问题。

参考这个blog

SO 可能重复

【讨论】:

  • @LaksmiNarayanan ,这不能解决我的问题。
【解决方案2】:

我的 IE 设置有问题。

IE --> 工具 -->Internet 选项 --> 连接 -->Lan 设置

旧的 - 导致问题的错误。

'xxx.xxxx.xxx' - 3 部分

改为

'xxx.xx.xx.xxx' - 4 部分

【讨论】:

    猜你喜欢
    • 2023-03-29
    • 2013-10-24
    • 2012-05-17
    • 2019-07-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多