我正在使用以下代碼來更新圖像源並不斷收到異常。圖像更新異常
String[] ParseLocationAndMessage = Shouts[0].Message.Split(',');
var bitmap = new BitmapImage(new Uri("http://shout.somee.com/allimages/IVn1XSTZXShJG5UxrvLZCOGXolVHjR9WCzDag-WVLsjAtla.jpg"));
shoutImage1.Source = bitmap;
shoutmessage1.Text = ParseLocationAndMessage[0];
shoutlocation1.Text = ParseLocationAndMessage[1];
我看了很多,發現這是給圖像源的最佳方式,任何想法爲什麼發生這種情況?
確切的錯誤信息是什麼? – har07
在System.Windows.ni.dll中發生類型'System.UnauthorizedAccessException'的異常,但未在用戶代碼 –