1

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

https://docs.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

谁能建议我遵循的示例出了什么问题?

4

1 回答 1

0

@Azhar 根据链接,它是 TCP。

于 2019-10-08T16:02:30.407 回答