title: Unable to get property 'signalR' of undefined or null reference
body: <p>I am trying the SignalR intro sample from here: <a href="http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-getting-started-with-signalr-20" rel="nofollow noreferrer">http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-getting-started-with-signalr-20</a></p>
  <p>Following the sample, I got the error below after pressing F5:</p>
  <blockquote>
  <p>Unhandled exception at line 17, column 5 in
  <a href="http://myServer.com:12269/signalr/hubs" rel="nofollow noreferrer">http://myServer.com:12269/signalr/hubs</a></p>
  <p>0x800a138f - JavaScript runtime
  error: Unable to get property 'signalR' of undefined or null reference</p>
  </blockquote>
  <p>I am new to SignalR, not quite sure where to start. Any insight?</p>
  <p>A screenshot of the error. It's part of the generated hubs script.</p>
  <p><img src="https://i.stack.imgur.com/WxQF3.jpg" alt="enter image description here" /></p>
  <p>The source code on the index.html:</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;SignalR Simple Chat&lt;/title&gt;
      &lt;style type=&quot;text/css&quot;&gt;
          .container {
              background-color: #99CCFF;
              border: thick solid #808080;
              padding: 20px;
              margin: 20px;
          }
      &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div class=&quot;container&quot;&gt;
          &lt;input type=&quot;text&quot; id=&quot;message&quot; /&gt;
          &lt;input type=&quot;button&quot; id=&quot;sendmessage&quot; value=&quot;Send&quot; /&gt;
          &lt;input type=&quot;hidden&quot; id=&quot;displayname&quot; /&gt;
          &lt;ul id=&quot;discussion&quot;&gt;&lt;/ul&gt;
      &lt;/div&gt;
      &lt;!--Script references. --&gt;
      &lt;!--Reference the jQuery library. --&gt;
      &lt;script src=&quot;Scripts/jquery-1.6.4.min.js&quot;&gt;&lt;/script&gt;
      &lt;!--Reference the SignalR library. --&gt;
      &lt;script src=&quot;Scripts/jquery.signalR-2.1.0.min.js&quot;&gt;&lt;/script&gt;
      &lt;!--Reference the autogenerated SignalR hub script. --&gt;
      &lt;script src=&quot;signalr/hubs&quot;&gt;&lt;/script&gt;
      &lt;!--Add script to update the page and send messages.--&gt;
      &lt;script type=&quot;text/javascript&quot;&gt;
          $(function () {
              // Declare a proxy to reference the hub.
              var chat = $.connection.chatHub;
              // Create a function that the hub can call to broadcast messages.
              chat.client.broadcastMessage = function (name, message) {
                  // Html encode display name and message.
                  var encodedName = $('&lt;div /&gt;').text(name).html();
                  var encodedMsg = $('&lt;div /&gt;').text(message).html();
                  // Add the message to the page.
                  $('#discussion').append('&lt;li&gt;&lt;strong&gt;' + encodedName
                      + '&lt;/strong&gt;:&amp;nbsp;&amp;nbsp;' + encodedMsg + '&lt;/li&gt;');
              };
              // Get the user name and store it to prepend to messages.
              $('#displayname').val(prompt('Enter your name:', ''));
              // 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($('#displayname').val(), $('#message').val());
                      // Clear text box and reset focus for next comment.
                      $('#message').val('').focus();
                  });
              });
          });
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>