在Windows 10 IOT Core上运行的通用Windows应用中的HttpClient抛出HRESULT异常:0x80072EFD [英] HttpClient in Universal Windows app running on Windows 10 IOT Core throws Exception from HRESULT: 0x80072EFD

查看:125
本文介绍了在Windows 10 IOT Core上运行的通用Windows应用中的HttpClient抛出HRESULT异常:0x80072EFD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I´m using VS2015 to deploy a universal app to a Raspberry Pi 2 Model B running Windows 10 IOT Core (10.0.10240). Any usage of the HttpClient to call a WebService or retrieve some data like the following

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

产生HRESULT异常:0x80072EFD。

yields an Exception from HRESULT: 0x80072EFD.

功能


  • Internet(客户端)

  • Internet(客户端和服务器)

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

设置在应用清单中。有什么建议吗?

are set in the app manifest. Any suggestions?

推荐答案

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

Experienced the 0x80072efd problem. Appeared to be something with proxy settings gone wrong. The following worked for me (from admin command prompt):

netsh winhttp reset proxy

这篇关于在Windows 10 IOT Core上运行的通用Windows应用中的HttpClient抛出HRESULT异常:0x80072EFD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆