title: SignalR - WebSocket Error: Network Error 12030, The connection with the server was terminated abnormally
body: <p>Trying to get SignalR working on the webserver(IIS 8, Server 2012, websockets installed, .NET 4.5) but having no joy. </p>
  
  <p>Works great on my local IIS(windows 8 and connects with websockets)</p>
  
  <pre><code>&lt;httpRuntime targetFramework="4.5"/&gt; 
  </code></pre>
  
  <p>and   </p>
  
  <pre><code>&lt;compilation strict="false" explicit="true" targetFramework="4.5" debug="false"&gt;
  </code></pre>
  
  <p>Set in webconfig</p>
  
  <p>Local signalr logging:</p>
  
  <pre><code>[11:26:17 GMT+0000 (GMT Standard Time)] SignalR: Client subscribed to hub 'notificationhub'.
  [11:26:17 GMT+0000 (GMT Standard Time)] SignalR: Negotiating with '/signalr/negotiate?clientProtocol=1.5&amp;connectionData=%5B%7B%22name%22%3A%22notificationhub%22%7D%5D'.
  [11:26:17 GMT+0000 (GMT Standard Time)] SignalR: webSockets transport starting.
  [11:26:17 GMT+0000 (GMT Standard Time)] SignalR: Connecting to websocket endpoint 'ws://localhost:22038/signalr/connect?transport=webSockets&amp;clientProtocol=1.5&amp;connectionToken=W5PmClxV6R32xJpuP5It2NUDVvJXOESGJCrgQYb67z59ODUJFr13zQzgBgTYEfmr4XbgMmRGU3ZncQS3yZU2Hmh%2Fc3h%2F17fh9gRlUOUdnaVYcnls%2BQon%2F7R0ckNw8MnLcrG1pg%3D%3D&amp;connectionData=%5B%7B%22name%22%3A%22notificationhub%22%7D%5D&amp;tid=3'.
  [11:26:17 GMT+0000 (GMT Standard Time)] SignalR: Websocket opened.
  [11:26:17 GMT+0000 (GMT Standard Time)] SignalR: webSockets transport connected. Initiating start request.
  [11:26:18 GMT+0000 (GMT Standard Time)] SignalR: The start request succeeded. Transitioning to the connected state.
  [11:26:18 GMT+0000 (GMT Standard Time)] SignalR: Now monitoring keep alive with a warning timeout of 13333.333333333332, keep alive timeout of 20000 and disconnecting timeout of 30000
  hub start, connection id=01b7a623-5531-496c-a5e1-ab0876e2c1a6
  </code></pre>
  
  <p>Server log:</p>
  
  <pre><code>[11:24:01 GMT+0000 (GMT Standard Time)] SignalR: Client subscribed to hub 'notificationhub'.
  [11:24:01 GMT+0000 (GMT Standard Time)] SignalR: Negotiating with '/signalr/negotiate?clientProtocol=1.5&amp;connectionData=%5B%7B%22name%22%3A%22notificationhub%22%7D%5D'.
  [11:24:02 GMT+0000 (GMT Standard Time)] SignalR: webSockets transport starting.
  [11:24:02 GMT+0000 (GMT Standard Time)] SignalR: Connecting to websocket endpoint 'ws://foo.co.uk/signalr/connect?transport=webSockets&amp;clientProtocol=1.5&amp;connectionToken=uibfnMomSreytNZY7UiusFWoTjNWO6%2FNIaBzIM%2FVVSBOXk6SNlyULUH%2FaGWoPynoEbx6sKRfShJG0zrd846uqgdgEK6xQIP2K5j3xfwtBlngGG3i6k%2FYoHNk5subReA3TsCxfw%3D%3D&amp;connectionData=%5B%7B%22name%22%3A%22notificationhub%22%7D%5D&amp;tid=10'.
  [11:24:03 GMT+0000 (GMT Standard Time)] SignalR: Websocket opened.
  SCRIPT12030: WebSocket Error: Network Error 12030, The connection with the server was terminated abnormally
  
  [11:24:03 GMT+0000 (GMT Standard Time)] SignalR: Unclean disconnect from websocket: [no reason given].
  [11:24:03 GMT+0000 (GMT Standard Time)] SignalR: Closing the Websocket.
  [11:24:03 GMT+0000 (GMT Standard Time)] SignalR: webSockets transport failed to connect. Attempting to fall back.
  [11:24:03 GMT+0000 (GMT Standard Time)] SignalR: serverSentEvents transport starting.
  [11:24:03 GMT+0000 (GMT Standard Time)] SignalR: This browser doesn't support SSE.
  [11:24:03 GMT+0000 (GMT Standard Time)] SignalR: serverSentEvents transport failed to connect. Attempting to fall back.
  [11:24:03 GMT+0000 (GMT Standard Time)] SignalR: foreverFrame transport starting.
  [11:24:03 GMT+0000 (GMT Standard Time)] SignalR: Binding to iframe's load event.
  [11:24:03 GMT+0000 (GMT Standard Time)] SignalR: Iframe transport started.
  [11:24:03 GMT+0000 (GMT Standard Time)] SignalR: foreverFrame transport connected. Initiating start request.
  [11:24:03 GMT+0000 (GMT Standard Time)] SignalR: The start request succeeded. Transitioning to the connected state.
  [11:24:03 GMT+0000 (GMT Standard Time)] SignalR: Now monitoring keep alive with a warning timeout of 13333.333333333332, keep alive timeout of 20000 and disconnecting timeout of 30000
  hub start, connection id=cd2af7f4-5f85-40bb-a0a6-f8f8060bedae
  </code></pre>
  
  <p>Even though it appears to be connected using foreverFrame it does not fire the appropriate hub responses.</p>