SignalR working on Localhost, BUT not working on Server win server 2019 with IIS

Viewed 164

I have project with SignalR + MVC, this not working on Server win server 2019 with IIS. I Got errors: signalr/negotiate?clientProtocol=2.1&connectionData=%5B%7B"name"%3A"feedbackhub"%7D%5D&_=1646730379815

/[![enter image description here][1]][1] [1]: https://i.stack.imgur.com/7bfgB.jpg

anybody help me?

This all my Code: https://github.com/duc14s/SignalRFeedbackSample

1 Answers

Have you enabled websockets on the server?

  • On the taskbar, click Server Manager.
  • In Server Manager, click the Manage menu, and then click Add Roles and Features.
  • In the Add Roles and Features wizard, click Next. …
  • On the Server Roles page, expand Web Server (IIS), expand Web Server, expand - Application Development, and then select WebSocket Protocol.
Related