Note that there are some explanatory texts on larger screens.

plurals
  1. POIsolatedStorageException in a windows phone 7 application
    primarykey
    data
    text
    <p>I am trying to read a file not created in the application.</p> <p>Here is the sample i tried : </p> <pre><code>string FileName = "stops.txt"; string FolderName = "data"; string FilePath = System.IO.Path.Combine(FolderName, FileName); IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication(); IsolatedStorageFileStream fileStream = myIsolatedStorage.OpenFile(FilePath, FileMode.Open, FileAccess.Read); using (StreamReader reader = new StreamReader(fileStream)) { MessageBox.Show(reader.ReadLine()); } </code></pre> <p>I throw a "isolatedstorageexception" : <a href="http://www.microsoft.com/getsilverlight/DllResourceIDs/Default.aspx?Version=4.0.50829.0&amp;File=mscorlib.dll&amp;Key=IsolatedStorage_Operation_ISFS" rel="nofollow">link to exception</a></p> <pre><code>System.IO.IsolatedStorage.IsolatedStorageException: [IsolatedStorage_Operation_ISFS] Arguments: Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&amp;Version=4.0.50829.0&amp;File=mscorlib.dll&amp;Key=IsolatedStorage_Operation_ISFS at System.IO.IsolatedStorage.IsolatedStorageFileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, IsolatedStorageFile isf) at System.IO.IsolatedStorage.IsolatedStorageFile.OpenFile(String path, FileMode mode, FileAccess access) at HorairesCTS.MainPage.test() at HorairesCTS.MainPage..ctor() </code></pre> <p>Can someone help me to read this file ?</p> <p>Thank you !</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload