首页 > 解决方案 > 将 Azure 应用服务与本地托管的 IIS WCF 服务通信

问题描述

我正在努力进行从 Azure App 服务 ( WebApp ) 到本地托管在 IIS ( OnPrem ) 中的 WCF 的通信。

以前,当这两个应用程序都部署在本地的 IIS(ManagementApp、AXYOneServer)上时,它们能够毫无问题地进行通信。

以下 url 主要用于与 WCF 服务通信,该服务可在 IIS 上毫无问题地浏览。

http://1xxxsstt1045.forest7.dom/AXYOneServer/AXYFrontendService.svc/FES3

当两个应用程序都在本地托管( IIS )时,上面的 url 完全可以正常工作。但是,如果托管在 azure 的应用服务尝试访问上面托管在 IIS 的 url,我可以看到以下异常。

 There was no endpoint listening at http://1xxxsstt1045.forest7.dom/AXYOneServer/AXYFrontendService.svc/FES3 that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

可能是什么原因?我应该怎么做才能使他们的沟通成功。此外,还应该可以从 azure app-service 调试到本地部署的 IIS WCF 服务。

内部异常:无法解析远程名称“1xxxsstt1045.forest7.dom”。

标签: c#wcfiisazure-web-app-serviceazure-servicebusrelay

解决方案


推荐阅读