c# - 将 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# - 如何发布来自 Ajax 的数据?
- sql-server - 我可以通过 SqlPackage 和 DacFx 部署不同版本的表吗?
- filter - 在下拉列表中选择“全部”时过滤器不起作用
- sql - 从字符串中的名称值对中获取一个值
- python - 将ndarrays列表乘以列表
- python - URL_for 在烧瓶蓝图中找不到其他视图
- pytorch - AttributeError:“元组”对象没有属性“train_dataloader”
- linux - 在 init_task 中初始化任务结构成员
- bash - 如何导出 CDPATH 以避免非交互式 shell 脚本的问题?
- visual-studio-code - 是否可以在 VSCode 的输出窗格中更改数组的宽度?