title: SignalR websocket failed during handshake
body: <p>I'm working on a project in MVC of chat with SignalR.</p>
  
  <p>I have bought a web host with Windows Server 2012 R2 with IIS8 and framework 4.5 and websockets enabled (more server details: <a href="http://www.register.it/hosting/windows/compare.html" rel="nofollow noreferrer">http://www.register.it/hosting/windows/compare.html</a>, I've got smart pack).</p>
  
  <p>What my test application does is just a test for connect to hub in main page (I have another application, but I want to figure out what is the problem with minimum code possible), and when the client try to connect, this is the error:</p>
  
  <blockquote>
    <p>WebSocket connection to 'ws://otaku2gether.com/signalr/connect?transport=webSockets&amp;clientProtocol=1.5&amp;connectionToken=VHGrwNoDXPMMbtM5dx1e2gF08%2FRWnVkbKUKjGkZkhE4I0p%2FpIFehvooO1shzCxkjU5f308%2FjleQIErTFsZqqe%2B1R4T2GRwMlO0IQbiZE9Z245YZcg6ipRF3cT1TOrqWB&amp;connectionData=%5B%7B%22name%22%3A%22chathub%22%7D%5D&amp;tid=10' failed: Error during WebSocket handshake: 'Sec-WebSocket-Accept' header is missing</p>
  </blockquote>
  
  <p>The view is really simple:</p>
  
  <pre><code>@section scripts {
      &lt;script src="~/Scripts/jquery.signalR-2.2.1.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 () {
              var roomvar = $.connection.chatHub;
  
              $.connection.hub.logging = true;
  
              roomvar.client.sendBroadcast = function (message) {
                  alert(message);
              };
  
              $.connection.hub.start();
          });
      &lt;/script&gt;
  }
  </code></pre>
  
  <p>and the others prerequisites is done(helped also by the main tutorial <a href="https://www.asp.net/signalr/overview/getting-started/tutorial-getting-started-with-signalr-and-mvc" rel="nofollow noreferrer">https://www.asp.net/signalr/overview/getting-started/tutorial-getting-started-with-signalr-and-mvc</a> ) like startup, and hub.</p>
  
  <p>Does someone have some suggestions?</p>