gpt4 book ai didi

c# - 访问 Azure WCF 中继时出现问题并出现 "The endpoint was not found. Endpoint does not exist."错误

转载 作者:行者123 更新时间:2023-12-03 04:08:33 29 4
gpt4 key购买 nike

我一直在尝试将 Azure WCF 中继与链接中给出的两个 ASP 应用程序一起使用

https://learn.microsoft.com/en-us/azure/service-bus-relay/service-bus-dotnet-hybrid-app-using-service-bus-relay

该示例说明如何创建控制台服务器和 MVC 客户端应用程序以使用 Azure 服务总线中继进行连接。

我如上所述创建了 RootManageSharedAccessKey 并为这两个应用程序提供了主键。

但是在实现相同的操作后,我遇到了这个问题。

Endpoint= http://mynewns01.servicebus.windows.net/products
SharedAccessKey
O+rmo4DGKpPmg23XPj5HmYmsMChwzLumPKgxxxxxxxxxxx=
System.ServiceModel.EndpointNotFoundException
HResult=0x80131501
Message=The endpoint was not found. Endpoint does not exist. TrackingId:91e084d8-d143-4c7f-a2f6-7ca4cb372xx7_G4, SystemTracker:mynewns01.servicebus.windows.net:products, Timestamp:2019-10-08T13:51:46. Please ensure that you can connect to the internet using HTTP port 80 and TCP port 9350.
Source=mscorlib
StackTrace:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at ProductsServer.IProducts.GetProducts()
at ProductsWeb.Controllers.HomeController.Index() in D:\ProductsPortal\Controllers\HomeController.cs:line 32
at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase con

任何人都可以告诉我我所遵循的示例出了什么问题吗?

最佳答案

@Azhar 根据链接,它是 TCP。

关于c# - 访问 Azure WCF 中继时出现问题并出现 "The endpoint was not found. Endpoint does not exist."错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58288761/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com