WP7 error: "The remote server returned an error: NotFound."

1.5k Views Asked by At

I have this code that it used to work, but at some specific time it stopped to work and returned the error "The remote server returned an error: NotFound."

        WebClient deliciousWebClient = new WebClient();
        deliciousWebClient.Credentials = Credentials;
        deliciousWebClient.DownloadStringAsync(new Uri("https://api.del.icio.us/v1/tags/get"));
        deliciousWebClient.DownloadStringCompleted += (s, ee) =>
        {
            if (ee.Error == null)
            {
                …

Any suggestion on this error?

In this code, the error is pointing to delicious endpoit, but the same error is happening with some other services...

1

There are 1 best solutions below

2
On

The NotFound error is a classic 404 error, so it's possible that the API endpoint is down or that it changed on you.

I'd start by using Fiddler2 to make the requests manually. That'll help you figure out whether the issue is in your code somewhere or on the API side.

It's hard to get Fiddler working with the WP7 emulator, as you noted below. One trick I've used in the past when I got really desperate was to write a quick console app that used the same code that my Windows Phone app was executing. Then I was able to successfully intercept the traffic. It turned out that my request being properly formatted.