Вопрос по windows-phone-7 – В C # на Windows Phone попытка доступа к методу не удалась: System.IO.FileStream..ctor (System.String, System.IO.FileMode)

0
FileStream FS = new FileStream("MyFolder\\MyFile.txt", FileMode.Open);
IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication();
StreamWriter writeFile = new StreamWriter(new IsolatedStorageFileStream("MyFolder\\MyFile.txt", FileMode.Append, myIsolatedStorage));

    using (writeFile)
    {
        FS.Seek(0, SeekOrigin.End);
        writeFile.WriteLine(txtWrite.Text);
        writeFile.Close();
        System.Diagnostics.Debug.WriteLine("Now I am here");
    }

Error: User Rate Limit Exceeded

"Attempt to access the method failed: System.IO.FileStream..ctor(System.String, System.IO.FileMode)"

Error: User Rate Limit Exceeded

Ваш Ответ

3   ответа
2

Error: User Rate Limit ExceededFileStreamError: User Rate Limit ExceededIsolatedStorageFile:

IsolatedStorageFile myIsolatedStorage = 
    IsolatedStorageFile.GetUserStoreForApplication();

using (var writeFile = myIsolatedStorage.OpenFile("MyFolder\\MyFile.txt", FileMode.Append))
using (var writeFileStream = new StreamWriter(writeFile))
{
    writeFileStream.WriteLine(txtWrite.Text);
    System.Diagnostics.Debug.WriteLine("Now I am here");
}
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded Sankar Guda
0

Error: User Rate Limit Exceeded

 IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication();                
            StreamWriter writeFile = new StreamWriter(new IsolatedStorageFileStream("MyFolder\\MyFile.txt", FileMode.Append, myIsolatedStorage));

            writeFile.Flush();

            System.Diagnostics.Debug.WriteLine(txtWrite.Text);
            writeFile.WriteLine(txtWrite.Text);                
            writeFile.Close();
            System.Diagnostics.Debug.WriteLine("Now I am here");

Error: User Rate Limit Exceeded

0

Error: User Rate Limit ExceededmethodError: User Rate Limit ExceededfileError: User Rate Limit Exceeded
Error: User Rate Limit Exceeded Sankar Guda

Похожие вопросы