Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SignalR WebSocket handshake: Sec-WebSocket-Accept header is missing

SignalR 3-RC1 user on ASP.NET 5 RC1

Getting the following error when trying to get websocket going.

Using Chrome 50.0.2661.87

Headers are the following:

Request header:
Date:Fri, 29 Apr 2016 13:51:54 GMT
Server:Kestrel
Transfer-Encoding:chunked
Upgrade:websocket
X-Content-Type-Options:nosniff
X-Powered-By:ASP.NET

Response Header:
Accept-Encoding:gzip, deflate, sdch
Accept-Language:en-US,en;q=0.8,fr;q=0.6
Cache-Control:no-cache
Connection:Upgrade
Cookie: ...ASP.NET cookie
DNT:1
Host: host.tld
Origin: http://host.tld
Pragma:no-cache
Sec-WebSocket-Extensions:permessage-deflate; client_max_window_bits
Sec-WebSocket-Key:liIKiClt7Z057EwteJYJXQ==
Sec-WebSocket-Version:13
Upgrade:websocket
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.87 Safari/537.36

Using Microsoft.AspNet.WebSockets.Server 1.0.0-rc1

Server Setup: Windows Server 2012 R2 IIS 8.5

Anything I can do to get that fixed?

like image 802
DOMZE Avatar asked Apr 29 '16 14:04

DOMZE


1 Answers

As Hockey J commented, I had answered my question on GitHub but not here.

To remedy this problem:

  1. click Start
  2. type turn windows
  3. click Turn Windows Features On Or Off
  4. in the control panel window, navigate to Internet Information Services > World Wide Web Services > Application Development Features
  5. enable Websocket Protocol

enter image description here

  1. click Start
  2. type cmd, right click Command Prompt and choose Run as Administrator
  3. type iisreset into the command prompt
  4. refresh the page in the browser

See https://github.com/SignalR/SignalR/issues/3691

like image 150
DOMZE Avatar answered Oct 21 '22 22:10

DOMZE