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

504 views Asked by At

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

Can anybody help me?

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

1

There are 1 answers

2
Hedgybeats On

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.