I could not figure why only hardcode filename work?
1) Without hardcoding filename . Problems: Operation not permitted on IsolatedStorageFileStream 2) But when I hardcode the filename, say, "Test.jpg" in SaveImageFile() and GetImageInISO(), I can view the image and there is no error message. 1---------- save an Image from ImageControl : Private void SaveImageFile() { string strImgFile = strCountry + strCity + ".jpg"; using (IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForApplication()) { using (IsolatedStorageFileStream isfs = new IsolatedStorageFileStream(strImgFile, FileMode.Create, store)) { WriteableBitmap wb = new WriteableBitmap(g_IntWidth, g_IntHeight); wb.Render(cn, new TranslateTransform()); wb.Invalidate(); System.Windows.Media.Imaging.Extensions.SaveJpeg(wb, isfs, g_IntWidth, g_IntHeight, 0, 100); isfs.Close(); } } } --2------------Read the image private void GetImageInISO() { string strPassIn = strCountryName + strCityName + ".jpg"; BitmapImage bmp = new BitmapImage(); using (var store = IsolatedStorageFile.GetUserStoreForApplication()) { using (IsolatedStorageFileStream isfs = store.OpenFile(strPassIn, System.IO.FileMode.Open,FileAccess.Read)) { if (isfs.Length > 0) { bmp.SetSource(isfs); isfs.Close(); } else { MessageBox.Show("Empty file"); } } } image1.Width = bmp.PixelWidth; image1.Height = bmp.PixelHeight; image1.Source = bmp; } }