gpt4 book ai didi

.net - Windows 7 Websocket PlatformNotSupportedException

转载 作者:行者123 更新时间:2023-12-04 22:00:46 27 4
gpt4 key购买 nike

我正在使用 Microsoft.Azure.Devices.Client NuGet 包开发一个应用程序。在 Windows 10 上一切都运行良好,但在 Win7 计算机上测试时我遇到了这个聚合异常。

System.PlatformNotSupportedException: The WebSocket protocol is not supported on this platform.

通过搜索,我发现有几个线程说 Windows 7 不支持此功能,并且有一些“Microsoft 正在研究”类型的评论。

https://github.com/5andr0/PogoLocationFeeder/issues/229

自 2016 年以来,我没有太多更新或解决方案。

更多的搜索引导我走上了 Microsoft Web Platform Installer 的道路 https://www.microsoft.com/web/downloads/platform.aspx

我们尝试安装“IIS 10.0 Express”和“Microsoft Azure PowerShell”,但仍然失败。

我们正在将 W10 机器上的所有 Web 平台安装到 W7 上......其中大多数似乎都有一对一支持。

任何人都可以评论一下 W7 是否已完成或计划这样做吗?

或者在我尝试让不可能的事情成功之前我真的需要看看另一个方向吗?

除了 Web 服务安装之外,我的 W7 安装程序中是否还缺少一个软件包?

预先感谢您的任何意见!!!

最佳答案

我遇到了同样的问题,并使用以下 nuget 包解决了它:

System.Net.WebSockets.Client.Managed

https://www.nuget.org/packages/System.Net.WebSockets.Client.Managed/

github来源:https://github.com/PingmanTools/System.Net.WebSockets.Client.Managed

Creates a ClientWebSocket that works for this platform. Uses System.Net.WebSockets.ClientWebSocket if supported or System.Net.WebSockets.Managed.ClientWebSocket if not.

关于.net - Windows 7 Websocket PlatformNotSupportedException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48011763/

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