Questions tagged [signalr]

ASP.NET SignalR is a library for ASP.NET developers that makes it simple to add real-time functionality to your web applications. That is, to have your server-side code push content to the connected clients as it happens, in real-time.

SignalR is an asynchronous library for .NET to help build real-time, multi-user interactive web applications.

SignalR lets you communicate with clients on your website in real time through the best continuous connections available between browser and server (WebSocket between Chrome and IIS 8, but long polling between Internet Explorer 9 and IIS 7.5).

SignalR allows you to call methods from the server on the client (.NET , JavaScript, Java) and reciprocally. You can invoke methods on every client or a subset of clients.

Extensive documentation and guides are found here.

SignalR can be downloaded through NuGet here.

The source code is available on GitHub.

The JavaScript client package (jQuery plugin)

9391 questions
45
votes
1 answer

SignalR vs. Reactive Extensions

Is SignalR the same thing is Reactive Extensions? Can you explain why or why not?
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
45
votes
9 answers

SignalR 2.0 error: Could not load file or assembly Microsoft.Owin.Security

I'm following this tutorial step by step http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-signalr-20-self-host And I'm getting an exception on the line marked below string url =…
Null Reference
  • 11,260
  • 40
  • 107
  • 184
44
votes
8 answers

CORS policy don't want to work with SignalR and ASP.NET core

I have a problem with my ASP.NET core API and my Angular Client. I want to implement SignalR to have a connection between API and Angular. The cors policy are already activated on our client and the API because we can already retrieve data from the…
thelittlewozniak
  • 368
  • 1
  • 8
  • 21
44
votes
3 answers

IISExpress crashes with 0xc0000008 error

Occasionally when running my MVC4 site in VS2012 using IISExpress I get the following error and IISExpress stops: iisexpress.exe: Managed (v4.0.30319)' has exited with code -1073741816 (0xc0000008) 'An invalid handle was specified There is nothing…
Jonesie
  • 6,997
  • 10
  • 48
  • 66
42
votes
2 answers

SignalR: There was an error invoking Hub method "XXX"

Server: public void AddLine(string line) { Clients.Others.addLine(line); } .NET Client: await rtHubProxy.Invoke("AddLine", "lineInfo"); Exception: InvalidOperationException: There was an error invoking Hub method 'xxx.AddLine'. Actually, I…
Isilmë O.
  • 1,668
  • 3
  • 23
  • 35
41
votes
8 answers

Angular/SignalR Error: Failed to complete negotiation with the server

Using SignalR for my server and Angular for my client... When I run my client I receive these errors: zone.js:2969 OPTIONS https://localhost:27967/chat/negotiate 0 () Utils.js:148 Error: Failed to complete negotiation with the server:…
John
  • 481
  • 1
  • 6
  • 13
41
votes
6 answers

VS2013 Browser Link "The controller for path '/9ac086a69364466a841e03e001f946fd/arterySignalR/ping' could not be found."

Since updating to VS2013, we receive this error when running our (MCV4) web app: The controller for path '/9ac086a69364466a841e03e001f946fd/arterySignalR/ping' could not be found. I know that it relates to browser link although i'm not sure what we…
Fatal
  • 3,338
  • 3
  • 19
  • 15
41
votes
13 answers

Visual Studio 2012 warning MSB3026: Could not copy DLL files

I keep getting: warning MSB3026: Could not copy dlls errors. I have several projects in the solution. On build, I also get the error: Error 47 Could not copy "myapp\bin\Debug*.dll" to "bin*.dll". Exceeded retry count of 10. Failed. The…
Oxon
  • 4,901
  • 8
  • 40
  • 54
40
votes
6 answers

Passing token through http Headers SignalR

I can see that there is an option in HubConnection to pass parameters through url request from client. Is there any way to pass specific token through http headers from JS or .NET clients?
Eduard Truuvaart
  • 429
  • 1
  • 4
  • 8
40
votes
16 answers

SignalR /signalr/hubs 404 Not Found

I am trying to deploy a SignalR site on IIS. Code all works fine in VS. But getting the 404 not found error trying to resolve signalr/hubs so far I have tried. 1) Changing the Script ref to: script src="<%= ResolveUrl("~/signalr/hubs") %>"…
user685590
  • 2,464
  • 5
  • 30
  • 42
38
votes
3 answers

SignalR: detect connection state on client

I've seen how you can trap a disconnection event on the client side with SignalR by binding to the .disconnect event. Now that I've done this, I want to put the client into a "waiting to reconnect cycle" where it continually tries to connect until…
Heather
  • 2,602
  • 1
  • 24
  • 33
38
votes
5 answers

How to use signalr in Android

I am trying to integrate signalR in android app but no luck. I've been looking at various links but none of them provide proper information about implementation. I've the following questions. SignalR integration has to be done inside Service/Intent…
moDev
  • 5,248
  • 4
  • 33
  • 63
38
votes
7 answers

'Owin.IAppBuilder' does not contain a definition for 'MapSignalR'

Error 'Owin.IAppBuilder' does not contain a definition for 'MapSignalR' and no extension method 'MapSignalR' accepting a first argument of type 'Owin.IAppBuilder' could be found (are you missing a using directive or an assembly…
Bhavik
  • 4,836
  • 3
  • 30
  • 45
37
votes
1 answer

SignalR: Is it necessary to remove the connection id from group OnDisconnect()?

The tutorials only covered adding a connection ID to the group on OnConnected(), but what about cleaning it up on OnDisconnect()? After a permanent loss of connectivity, a client is given a new connection ID. What happens to its old connection ID in…
Yorro
  • 11,445
  • 4
  • 37
  • 47
37
votes
1 answer

Proper Hub dependency lifetime management for SignalR and Castle Windsor

I have some SignalR hubs which may need to access some transient and singleton dependencies. Hooking the creation of the Hub is easy and works just fine however SignalR does its own Dispose() call on the created Hub rather than notifying the…
Ian Yates
  • 1,324
  • 13
  • 24