Windows 7 上 IIS 8 Express 的 Websocket 问题 [英] Websocket issue with IIS 8 Express on Windows 7

查看:26
本文介绍了Windows 7 上 IIS 8 Express 的 Websocket 问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试为 Web 套接字创建处理程序,但 context.IsWebSocketRequest 始终返回 false,并且无法在 Windows 7 上使用 IIS 8 Express.

I tried creating handler for web socket but context.IsWebSocketRequest is returning always false and failed to working with IIS 8 Express on windows 7.

如何为 websocket 或我遗漏的任何步骤启用模块?我有带有 IIS Express 动态 url 的 VS 2012 应用程序.

How can I enable module for websocket or any step I missing? I have VS 2012 application with IIS Express dynamic url.

请帮忙做同样的事情.

推荐答案

WebSocket 协议需要在 IIS 8 中启用(参见 http://www.codeguru.com/csharp/csharp/programming-html5-web-sockets-in-asp.net-4.5.htm).此外,我不确定 Windows 7 是否支持 Web 套接字.我只看到需要 Windows 8 或 Windows Server 2012.

The WebSocket protocol needs to be enabled in IIS 8 (see http://www.codeguru.com/csharp/csharp/programming-html5-web-sockets-in-asp.net-4.5.htm). Additionally, I'm not sure web sockets is supported on Windows 7. I've only seen that Windows 8 or Windows Server 2012 are required.

这篇关于Windows 7 上 IIS 8 Express 的 Websocket 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆