HttpClient in Universal Windows app running on Windows 10 IOT Core throws Exception from HRESULT: 0x80072EFD

早过忘川 提交于 2019-12-10 17:40:11

问题


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");

yields an Exception from HRESULT: 0x80072EFD.

Capabilities

  • Internet (Client)
  • Internet (Client & Server)
  • Private Networks (Client & Server)

are set in the app manifest. Any suggestions?


回答1:


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



来源:https://stackoverflow.com/questions/32489813/httpclient-in-universal-windows-app-running-on-windows-10-iot-core-throws-except

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!