Windows phone 8 WP8:WebClient API下载StringAsync抛出System.Net.WebException下载任何RSS源时

Windows phone 8 WP8:WebClient API下载StringAsync抛出System.Net.WebException下载任何RSS源时,windows-phone-8,webclient,Windows Phone 8,Webclient,我正在尝试使用WebClient api在我的WP8应用程序中下载RSS源,并得到一个System.Net.WebException:NotFound,我尝试了各种不同的RSS源,结果都是一样的,我是否遗漏了什么,下面是示例代码 public class RssFeedDownloader { public Task<string> GetRssFeed(string feedUrl) { var tcs = new TaskCompletionSou

我正在尝试使用WebClient api在我的WP8应用程序中下载RSS源,并得到一个System.Net.WebException:NotFound,我尝试了各种不同的RSS源,结果都是一样的,我是否遗漏了什么,下面是示例代码

public class RssFeedDownloader
{
    public Task<string> GetRssFeed(string feedUrl)
    {
        var tcs = new TaskCompletionSource<string>();

        var client = new WebClient();
        client.DownloadStringCompleted += (s, e) =>
        {
            if (e.Error == null)
            {
                tcs.SetResult(e.Result);
            }
            else
            {
                tcs.SetException(e.Error);
            }
        };

        client.DownloadStringAsync(new Uri(feedUrl));

        return tcs.Task;
    }
}
公共类RssFeedDownloader
{
公共任务GetRssFeed(字符串feedUrl)
{
var tcs=new TaskCompletionSource();
var client=new WebClient();
client.DownloadStringCompleted+=(s,e)=>
{
如果(e.Error==null)
{
tcs.SetResult(e.Result);
}
其他的
{
设置异常(例如错误);
}
};
DownloadStringAsync(新Uri(feedUrl));
返回tcs.Task;
}
}

什么URL?你确认过你可以通过IE浏览器访问URL吗?是的,IE很好,正如我在文章中提到的,似乎我使用的任何RSS源URL基本上都是相同的问题。如果URL有可能,https?对我有效,请先尝试。那么,什么是失败的URL呢?没有Https,URL基本上在“”之后;""