-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASP.NET Core 3 Razor Components not working without WebSockets on IIS #8384
Comments
Is there a temporary fix for development in Visual Studio 2019 and IIS Express 10 ? |
The same problem seems to happen when the server has web socket support but the clients can't use it because of firewalls or whatever other network reason. The long polling alternative seems to be entirely broken, don't know whether by SignalR changes or Razor Component changes. |
I just want to share following info. I have then added the Websocket Role () and everything works fine now. Seems the Websocket Support for IIS was introduced in IIS 8.0. |
With the Websocket Role the app is only broken for the users which can't establish websockets due to their firewalls (or whatever), without the Websocket Role the app is broken for everyone: Fallback to long polling is initiated but fails in some way so no render messages get through. |
Seems this is going to be resolved by #6920. |
The counter does not work in IE. But Works in Chrome. Bizzare. |
That's another issue, currently there's no IE support, this is not related with the websocket issue on discussion here. |
I installed the latest runtime Runtime 3.0.0-preview3-27503-5, and when publishing the solution to an IIS without Websocket support, the interactivity doesn't work.
The published application is just the default Razor Components template, browsing the "Counter" page, the button "Click me" that increments the counter doesn't work.. I tried adding other buttons to the default template and publishing my own project and doesn't work either. It seems to be a problem with "long polling" as far as I understand how SignalR connects to a server without Websocket protocol available. See the attached screenshots.
I found this when trying to publish my own razor components app to a production server Windows 2008 R2 which doesn't have Websocket support.
The text was updated successfully, but these errors were encountered: