0
点赞
收藏
分享

微信扫一扫

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

心如止水_c736 2022-08-18 阅读 85

Net 4.5 WebSocket在Windows 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://github.com/statianzo/Fleck​​
  • ​​http://vtortola.github.io/WebSocketListener/​​
  • ​​http://superwebsocket.codeplex.com/​​
  • ​​https://archive.codeplex.com/?p=websocket4net​​

龙腾一族至尊龙骑



举报

相关推荐

0 条评论