This is the complete answer from the SignalR wiki ( https://github.com/SignalR/SignalR/wiki/Faq ). He worked with me:
First, make sure you have a call to MapHubs () in Global.asax.
Please make sure the hub route is registered before any other routes in your application.
RouteTable.Routes.MapHubs();
In ASP.NET MVC 4, you can do the following:
<script type="text/javascript" src="~/signalr/hubs"></script>
If you are writing an MVC 3 application, make sure you use Url.Content for the script links:
<script type="text/javascript" src="@Url.Content("~/signalr/hubs")"></script>
If you are writing a regular ASP.NET application, use ResolveClientUrl for the script links:
<script type="text/javascript" src='<%= ResolveClientUrl("~/signalr/hubs") %>'></script>
If the above still does not work, make sure you have RAMMFAR installed in the web.config file:
<configuration> <system.webServer> <modules runAllManagedModulesForAllRequests="true"> </modules> </system.webServer> </configuration>
Saad May 18 '14 at 15:59 2014-05-18 15:59
source share