Rocky Singh Rocky Singh - 1 year ago 81
ASP.NET (C#) Question

SignalR "signalr/hubs" giving 404 error

I am using SignalR( in my project. From here I got the idea how to use Hubs. But the "signalr/hubs" script is giving 404 error. Here is the url which becomes in View Source: http://localhost:50378/signalr/hubs giving 404 error

Here is my code:

public class Test:Hub
public void Start()
Caller.guid = Guid.NewGuid();

public void TestMethod()
{"test", Caller.guid);


<html xmlns="">
<head runat="server">
<script src="../Scripts/jquery-1.6.4.min.js" type="text/javascript"></script>
<script src="../Scripts/jquery.signalR.js" type="text/javascript"></script>
<script src="<%= ResolveUrl("~/signalr/hubs") %>" type="text/javascript"></script>
<script type="text/javascript">

$(document).ready(function () {
var test = $.connection.test;
$("#btnTest").click(function () {
}); = function (text, guid) {
if (guid != test.guid) //notify all clients except the caller
$.connection.hub.start(function () { test.start(); });

<form id="HtmlForm" runat="server">



<validation validateIntegratedModeConfiguration="false"/>
<modules runAllManagedModulesForAllRequests="true">

Answer Source

It could be that you haven't added a reference to SignalR.AspNet.dll. If I recall correctly it's responsible for adding the route to /signalr/hubs.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download