这段代码在wp8中完全正常,但是在wp7中就会抛System.NET.Exception,详细信息为:未发现远程服务器(The remote server not found):
WebClient wb = new WebClient();
wb.OpenReadAsync(new Uri("http://p2.music.126.net/pmHS4fcQtcNEGewNb5HRhg==/2002210674180202.jpg", UriKind.Absolute));
wb.OpenReadCompleted += (o, a) =>
{
if (a.Result != null)
System.Diagnostics.Debug.WriteLine("Is not null");
else
System.Diagnostics.Debug.WriteLine("Is Null");
};
不知各位有什么高见
HamGuy | Windows Phone 8