Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SignalR Persistent connection giving 404 on echo/negotiate

Tags:

signalr

I'm having trouble with the most basic example https://github.com/SignalR/SignalR/wiki/QuickStart-Persistent-Connections. I get "404 on echo/negotiate"

like image 419
Carl Björknäs Avatar asked Feb 16 '12 19:02

Carl Björknäs


1 Answers

The example is out of date. It's because the default MVC-project calls RegisterRoutes(RouteTable.Routes); You have to move the MapConnection to inside the RegisterRoutes, after the routes.IgnoreRoute("{resource}.axd/{*pathInfo}"; but before any other routes.

I hope this helps

like image 110
Stefan Bergfeldt Avatar answered Sep 20 '22 20:09

Stefan Bergfeldt