SignalR not working in website but works in web application

后端 未结 1 1956
暗喜
暗喜 2021-01-21 10:11

I followed this simple tutorial and managed to create a test web application with signalR. But when I tried to recreate it using ASP.NET website and then browse for the html pag

相关标签:
1条回答
  • 2021-01-21 10:47

    You should always check the console when something doesn't work - in your case, the page simply can't find the references to the SignalR script and to /signalr/hubs (and it says so in the console). If you change the urls to "/WebSite18/Scripts/jquery.signalR-1.1.3.js" and "/Website18/signalr/hubs", it will work.

    0 讨论(0)
提交回复
热议问题