Reputation: 163
I have created a small and simple chat with signalr on a azure website. That doesn't work as expected. After some hours on Google I found out, that signalr should be implemented different on Azure.
What is best practise? Any good examples?
It should work on both mobile and in normal browsers.
Upvotes: 0
Views: 469
Reputation: 13367
To get signalr working when deploying to azure, I had to use
appBuilder.SetDataProtectionProvider(new MachineKeyProtectionProvider());
inside my Startup.cs Configure() method.
link to MachineKeyProtectionProvider gist
This is actually a workaround to this problem but it seems to work. Follow this link : ASP.NET 5 app in Azure doesn't work with SignalR
Upvotes: 0
Reputation: 1153
Per the docs at: http://www.asp.net/signalr/overview/deployment/using-signalr-with-azure-web-sites
Deploying a SignalR Web App to Azure App Service
SignalR doesn't add any particular complications to deploying an application to Azure versus deploying to an on-premises server. An application that uses SignalR can be hosted in Azure without any changes in configuration or other settings (though for WebSockets support, see Enabling WebSockets on Azure App Service below.)...
Upvotes: 3