title: "Cannot read property 'hub' of undefined" in aspx page with declare SignalR Library
body: <p>I have added SignalR script in my ASPX page. But when the page loads:, it gets error in console: Cannot read property 'hub' of undefined. Here my code: ( all of this code is placed in "asp:Content" tag)</p>
  
  <p></p>
  
  <pre><code>&lt;script src="/Js/jquery-1.10.2.min.js"&gt;&lt;/script&gt;
      &lt;!--Reference the jQuery library. --&gt;
  &lt;script src="/Js/jquery.signalR-2.1.2.min.js"&gt;&lt;/script&gt; 
  
      &lt;!--Reference the autogenerated SignalR hub script. --&gt;
  &lt;script src="http://myhost/signalr/hubs"&gt;&lt;/script&gt;
  
  &lt;script type="text/javascript" src="../Js/tooltip.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
          $(function () {
              console.log($.connection);
              $.connection.hub.url = 'http://myhost/signalr';
              // Declare a proxy to reference the hub.
              var chat = $.connection.myHub1;
          });     
  
      &lt;/script&gt;
  </code></pre>
  
  <p></p>
  
  <p>When I declare this script in plain html page, it works successfully.</p>
  
  <p>Anyone have idea. Thanks.</p>
  
  <p>Code: <a href="https://i.stack.imgur.com/XgmaF.jpg" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>Error: <a href="https://i.stack.imgur.com/IESfq.png" rel="nofollow noreferrer">enter image description here</a></p>