gpt4 book ai didi

c# - 在 Windows 10 IOT Core 上运行的通用 Windows 应用程序中的 HttpClient 从 HRESULT : 0x80072EFD 抛出异常

转载 作者:行者123 更新时间:2023-11-30 12:57:52 25 4
gpt4 key购买 nike

我正在使用 VS2015 将通用应用程序部署到运行 Windows 10 IOT Core (10.0.10240) 的 Raspberry Pi 2 Model B。使用 HttpClient 调用 WebService 或检索某些数据,如下所示

HttpClient client = new HttpClient();
var re = await client.GetAsync("http://somehost/api/values/5");

从 HRESULT 产生异常:0x80072EFD。

能力

  • 互联网(客户端)
  • 互联网(客户端和服务器)
  • 专用网络(客户端和服务器)

在应用程序 list 中设置。有什么建议吗?

最佳答案

遇到了 0x80072efd 问题。似乎是代理设置出了问题。以下对我有用(来自管理员命令提示符):

netsh winhttp 重置代理

关于c# - 在 Windows 10 IOT Core 上运行的通用 Windows 应用程序中的 HttpClient 从 HRESULT : 0x80072EFD 抛出异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32489813/

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