gpt4 book ai didi

websocket - 在 Windows 7 上使用 WebSocket

转载 作者:行者123 更新时间:2023-12-02 22:14:53 24 4
gpt4 key购买 nike

我刚刚安装了 Visual Studio 2012 RC 并尝试使用启用 WebSocket 的 netHttpBinding 来运行服务,但出现以下错误:

This platform does not support server side WebSockets.

我运行的示例来自 http://blogs.microsoft.co.il/blogs/idof/archive/2012/03/01/what-s-new-in-wcf-4-5-websocket-support-part-1-of-2.aspx

WebSocket 可以在 Windows 7 上使用 Visual Studio 2012 RC 工作吗?

最佳答案

不,无论您使用哪个 Visual Studio 版本,Websockets 仅受 Windows 8 中的 Windows 原生支持。

http://www.paulbatum.com/2011/09/getting-started-with-websockets-in.html

这是由于 Windows 7 中 http.sys 的一些低级问题造成的。

它有可能被向后移植,但似乎不太可能:http://weblogs.asp.net/owscott/archive/2012/03/01/what-s-new-in-iis-8.aspx

要在 Windows 7 上使用 Websockets,您必须编写自己的服务。

尝试在客户端使用此:http://websocket4net.codeplex.com/

服务器端:http://superwebsocket.codeplex.com/

关于websocket - 在 Windows 7 上使用 WebSocket,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11039438/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com