问题
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