Note that there are some explanatory texts on larger screens.

plurals
  1. POSignalR "signalr/hubs" giving 404 error
    primarykey
    data
    text
    <p>I am using SignalR(https://github.com/SignalR/SignalR) in my project. From here <a href="https://github.com/SignalR/SignalR/wiki/QuickStart-Hubs">https://github.com/SignalR/SignalR/wiki/QuickStart-Hubs</a> 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: <a href="http://localhost:50378/signalr/hubs">http://localhost:50378/signalr/hubs</a> giving 404 error</p> <p>Here is my code: Hub:</p> <pre><code>public class Test:Hub { public void Start() { Caller.guid = Guid.NewGuid(); } public void TestMethod() { Clients.show("test", Caller.guid); } } </code></pre> <p>ASPX:</p> <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head runat="server"&gt; &lt;title&gt;Title&lt;/title&gt; &lt;script src="../Scripts/jquery-1.6.4.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="../Scripts/jquery.signalR.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="&lt;%= ResolveUrl("~/signalr/hubs") %&gt;" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function () { var test = $.connection.test; $("#btnTest").click(function () { test.testMethod(); }); test.show = function (text, guid) { if (guid != test.guid) //notify all clients except the caller alert(text); }; $.connection.hub.start(function () { test.start(); }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;form id="HtmlForm" runat="server"&gt; &lt;div&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Web.config:</p> <pre><code> &lt;system.webServer&gt; &lt;validation validateIntegratedModeConfiguration="false"/&gt; &lt;modules runAllManagedModulesForAllRequests="true"&gt; .... </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload