title: hub couldn't be resolved in SignalR
body: <p>I'm working on a signalR project, the project includes a Web API in the API I added my hub class then I created a separate javascript client to work with that 
  client , through this I got the error said 
  <strong>examhub' Hub could not be resolved.</strong> and I don't know why can any help.</p>
  
  <p>My Hub Code :</p>
  
  <pre><code>public class ExamHub : Hub
  {
      public void Send(string name , string message)
      {
          Clients.All.broadcast(name, message);
      }
  }
  </code></pre>
  
  <p>Javascript Client : </p>
  
  <pre><code> &lt;html&gt;
  &lt;head&gt;
      &lt;meta name="viewport" content="width=device-width" /&gt;
      &lt;script src="https://code.jquery.com/jquery-2.2.4.min.js"
              integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44="
              crossorigin="anonymous"&gt;&lt;/script&gt;
      &lt;script src="~/Scripts/jquery.signalR-2.2.2.js"&gt;&lt;/script&gt;
      &lt;script src="http://localhost:51822/signalr/hubs"&gt;&lt;/script&gt;
      &lt;title&gt;SignalR&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div&gt; 
      &lt;/div&gt;
      &lt;script type="text/javascript"&gt;
          $(function () {
              var exam = $.connection.examHub;
  
              exam.client.broadcast = function (name, message) {
                  alert(name + "" + message);
              }
              $.connection.hub.start().done(function () {
                  exam.server.send("Alameer", "Hi");
              });
          });
      &lt;/script&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>