问题描述
我已经使用SignalR在那里的教程,效果很好.
I have built a simple Chat application using SignalR followed the tutorial there, which works great.
然后,我按照 SignalR的教程进行操作也可以从Microsoft使用Azure Service Bus进行横向扩展.
所以我已经完成了以下所有步骤:
So I have completed all the following steps:
- 在Azure门户上创建新的云服务
- 在Azure门户上创建新的服务总线命名空间
- 使用SignalR ASP.NET Web角色创建Windows Azure云服务
- 设置在2个实例(VM大小:小型)上运行的SignalR Web角色
- 将云服务部署到Azure云服务.
但是我无法使SignalR Chat应用程序正常工作.无法启动集线器.
But I can't get the SignalR Chat application to work. Can't start the hub.
我注意到它试图使用longPolling并在浏览器的调试工具(Chrome)中显示已取消/中止"状态,并在控制台中显示以下错误:
I noticed it tried to use longPolling and shows status Cancelled/Abort in the browser's debugging tool (Chrome) with the following error in the console:
这是网络中的日志:
除了本教程中列出的所有步骤之外,我还需要做其他事情吗?
Do I need to do anything extra besides all the steps listed in the tutorial to make this work?
推荐答案
基于当前定价,您需要将服务总线至少设置为标准层才能支持主题.
Based on the current Pricing, you need to set the Service bus to at least Standard tier to support Topics.
在这种情况下,我确实选择了标准层来创建我的服务总线,尽管它在定价层"部分的概述"页面上显示了标准",但我必须专门进行设置并将其从基本"扩展到标准".哪个解决了问题.
In this case, I did create my service bus choosing Standard tier, although it shows Standard on it's Overview page under the "Pricing tier" section, I have to specifically go to the settings and scaled it up from Basic to Standard. Which has solved the problem.
这篇关于带有服务总线的SignalR Azure云服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!