title: SignalR 2 does not generate /signalr/hubs
body: <p>Here is the page:</p>
  
  <pre><code>        &lt;script src="~/Scripts/jquery-1.10.2.min.js"&gt;&lt;/script&gt;
      &lt;script src="~/Scripts/jquery.signalR-2.1.2.min.js"&gt;&lt;/script&gt;
      &lt;!--Reference the autogenerated SignalR hub script. --&gt;
      &lt;script src="~/signalr/hubs"&gt;&lt;/script&gt;
      &lt;!--SignalR script to update the chat page and send messages.--&gt;
      &lt;script&gt;
          $(function () {
              // Reference the auto-generated proxy for the hub.
              var notification = $.connection.notificationHub;
              // Create a function that the hub can call back to display messages.
              notification.client.addNewMessage = function (message) {
                  // Add the message to the page.
                  $('#discussion').append('&lt;li&gt;&lt;strong&gt;'
                      + '&lt;/strong&gt;: ' + htmlEncode(message) + '&lt;/li&gt;');
              };
              // Set initial focus to message input box.
              $('#message').focus();
              // Start the connection.
              $.connection.hub.start().done(function () {
                  $('#sendmessage').click(function () {
                      // Call the Send method on the hub.
                      chat.server.send($('#message').val());
                      // Clear text box and reset focus for next comment.
                      $('#message').val('').focus();
                  });
              });
          });
          // This optional function html-encodes messages for display in the page.
          function htmlEncode(value) {
              var encodedValue = $('&lt;div /&gt;').text(value).html();
              return encodedValue;
          }
      &lt;/script&gt;
  </code></pre>
  
  <p>Here is the hub class:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using Microsoft.AspNet.SignalR;
  using Microsoft.AspNet.SignalR.Hubs;
  
  namespace AdminWebApp.Hubs
  {
       [HubName("notificationHub")] 
      public class NotificationHub : Hub
      {
  
          public void SendNotification(string message)
          {
              Clients.All.addNewMessage(message);
          }
      }
  }
  </code></pre>
  
  <p>Startup.cs:</p>
  
  <pre><code>using Microsoft.Owin;
  using Owin;
  
  [assembly: OwinStartupAttribute(typeof(AdminWebApp.Startup))]
  namespace AdminWebApp
  {
      public partial class Startup
      {
          public void Configuration(IAppBuilder app)
          {
              ConfigureAuth(app);
          }
      }
  }
  </code></pre>
  
  <p>When I try to access: <code>http://localhost:4551/signalr/hubs</code> I get a HTTP 404 not found error and when I try to run the page I get:</p>
  
  <pre><code> Failed to load resource: the server responded with a status of 404 (Not Found)
   Uncaught TypeError: Cannot read property 'client' of undefined 
  </code></pre>
  
  <p>I have tried this: <a href="https://stackoverflow.com/questions/17422023/signalr-signalr-hubs-is-not-generated">signalR : /signalr/hubs is not generated</a> and it didnt work.</p>
  
  <p>Any ideas?</p>