Net 4.5 WebSocket 在 Windows 7, Windows 8 and Server 2012上的比较以及问题

Net 4.5 WebSocketWindows 8, Windows 10, Windows Server 2012可以,但是在Windows 7, 就会报错。

错误1、“一个文件正在被访问,当前无法使用该文件

错误2、“参数无效

错误3、throws a PlatformNotSupportedException.

解决方法:

Net 4.5 WebSocket Server 可以运行在 Windows 7,但是Net 4.5的 ClientWebSocket 不支持 Windows 7,

只支持 Windows 8 and Server 2012,

但是可以使用第三方类库来支持Net 4.5 WebSocket 在win7,Windows 7上使用,

具体参考如下:

原文地址:https://www.cnblogs.com/1175429393wljblog/p/9952398.html