Last post Jul 05, 2019 06:48 AM by Naushad Warsi
Jan 13, 2016 06:58 AM|martinernstmueller|LINK
I'm using Client.Groups to notify all attached clients in a group about data changes. Hosting it on Kestrel everything works perfect. As I publish it on Azure, I run into the problem, that the clients do not update! So I run it on my local machine on IIS
express 10 and figured out that the problem exists here also. Using Clients.All IIS express works and notifies all clients, but using Client.Groups no client is notified on IIS.
Do I need to configure something on IIS to get it work? Is there meybe a possibility to run a WebApp on Azure on Kestrel?
Jan 14, 2016 05:22 AM|Candice Zhou|LINK
Welcome to ASP.NET Forums!
Using Clients.All IIS express works and notifies all clients, but using Client.Groups no client is notified on IIS.
As far as I know, Clients.All broadcast any message to all the clients. But Groups in SignalR provide a method for broadcasting messages to specified subsets of connected clients. So, you should make sure you have specified its name in a call to Groups.Add.
Then, you can send messages to all of the members of a group or only specified members of the group, please see this tutorial:
Jan 14, 2016 06:24 AM|martinernstmueller|LINK
Hi Candice and thanks for your welcome!
As far as I know, Clients.All broadcast any message to all the clients. But Groups in SignalR provide a method for broadcasting messages to specified subsets of connected clients.
You are absolutely right and everything works as described by you running the code on Kestrel. My Problem is that the same code doing the trick on Kestrel dosen't work on IIS. Not on the Azure-Platrform nor on a local installation of the IIS Express 10.
Therefore I asked if there are some configurations need to be done on IIS or if there is a possibility to run a ASP.Net WebApp on Azure on Kestrel.
Thanks for your help and regards,
Jan 15, 2016 10:40 AM|Candice Zhou|LINK
Firstly, you should make sure your IIS Express works well.
Secondly, if your application in all the IIS Express cannot use SignalR Groups, I think you could configure tracing for SignalR servers and clients. Tracing enables you to view diagnostic information about events in your SignalR application. Please see:
Jan 25, 2016 08:03 AM|martinernstmueller|LINK
Hi Candice and thanks again for your reply,
I think I need to give you some more context on my problem as the link you posted does not work for me as I'm using SignalR3. I have a ASP.Net WebApp written in ASP.Net 5. I'm developing the App in VS2015 where I can debug on Kestrel or IIS Express. On Kestrel
everything works fine, but publishing the WebApp to Azure, my clients does not get notified by clients.group("GroupID"). So I tried it on my local machine with the IIS Express and also here the code running on Kestrel does not work on IIS. So I activate the
debugging using the following code:
// add Signalr
opt.Hubs.EnableDetailedErrors = true;
But I don't see any error in the logfile of the IIS. It seems that the Messages to the client get swallowed by IIS. Maybe there's a problem with the current Release (3.0.0 RC1) of SignalR3?
Update: I changed my code in order to use SignalR2 and voila, the notification of the Clients work in Kestrel and IIS without any problem -> for me it seems to be a bug in SignalR3.
Feb 02, 2016 09:27 AM|Candice Zhou|LINK
You could refer to this link:
Jul 05, 2019 06:48 AM|Naushad Warsi|LINK
I am facing the same issue. was your issue solved?
if yes, please let me know how did you resolve this.