Getting INET_E_RESOURCE_NOT_FOUND error

Apr 17, 2014 at 7:17 PM
I'm developing a Rest client based on release 2.0.1 using nugget to get the binaries. I got the client working on Windows 7 (VS 2013 for Windows Desktop) and then tried porting it to Windows 8.1 (VS 2013 For Windows). I started getting exceptions that turned out to be calls to the IXMLHTTPRequest2Callback::OnError callback with error code INET_E_RESOURCE_NOT_FOUND (0x800C0005).

In trying to diagnose this error I downloaded the source code and ran the Blackjack client project (client and server) and it exhibited the same symptoms. I even wiresharked the client machine and no network traffic is generated.

I'm a bit baffled at this point.
Coordinator
May 3, 2014 at 12:08 AM
Hi

Can you confirm if the Internet Client capability set in the package.appxmanifest? Are any of the other capabilities set?
Also, are all HTTP requests failing, using cpprest http_client?
Could you please try a very basic HTTP request from a WinRT app and see if it succeeds:
    http_client client(U("http://www.microsoft.com"));
    client.request(web::http::methods::GET).then([](pplx::task<web::http::http_response> t)
    {
        try
        {
            web::http::http_response r = t.get();
            auto c = r.status_code();
            c;
        }
        catch (const web::http::http_exception& ex)
        {
        }
    });