Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7929951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:15:31+00:00 2026-06-03T20:15:31+00:00

I received a stack trace report which says there is an IsolatedStorageException. Frame Image

  • 0

I received a stack trace report which says there is an IsolatedStorageException.

“Frame Image Function Offset
0 coredll.dll xxx_RaiseException
1 mscoree3_7.dll
2 mscoree3_7.dll
3 mscoree3_7.dll
4 TransitionStub
5 System.IO.IsolatedStorage.IsolatedStorageSettings.Save
6 System.IO.IsolatedStorage.IsolatedStorageSettings.Clear
7 AppName.CycleManager.WriteToIsolatedStorage
8 AppName.SettingsPage.OnNavigatedFrom
9 Microsoft.Phone.Controls.PhoneApplicationPage.InternalOnNavigatedFrom
10 System.Windows.Navigation.NavigationService.RaiseNavigated
11 System.Windows.Navigation.NavigationService.CompleteNavigation
12 System.Windows.Navigation.NavigationService.ContentLoader_BeginLoad_Callback
13 System.Windows.Navigation.PageResourceContentLoader.BeginLoad_OnUIThread
14 ._c_DisplayClass4._BeginLoad_b__0
15 mscoree3_7.dll
16 mscoree3_7.dll
17 mscoree3_7.dll
18 System.Reflection.RuntimeMethodInfo.InternalInvoke
19 System.Reflection.RuntimeMethodInfo.InternalInvoke “

So I presume it the exception is raised by the WriteToIsolatedStorage().

public void WriteToIsolatedStorage()
    {
        IsolatedStorageSettings dataStorage = IsolatedStorageSettings.ApplicationSettings;
        dataStorage.Clear();


        dataStorage.Add("firstLaunchDate", App.LaunchedDateTime);

        dataStorage.Add("weekStart", m_bWeekStart);

        dataStorage.Add("iHistCount", m_iHistCount);

        // All the variables i need to store

        dataStorage.Add("noteCount", m_noteCount);

        WriteNotesToFile();

        dataStorage.Add("weightCount", m_iWeightCount);

        WriteWeightToFile();

        dataStorage.Add("tempCount", m_iTempCount);

        WriteTempToFile();

        dataStorage.Save();
    }

UPDATE:

    public void WriteNotesToFile()
    {
        if (m_noteCount > 0)
        {
            try
            {
                using (IsolatedStorageFile storagefile = IsolatedStorageFile.GetUserStoreForApplication())
                {
                    if (storagefile.FileExists("NotesFile"))
                    {
                        using (IsolatedStorageFileStream fileStream = storagefile.OpenFile("NotesFile", FileMode.Open, FileAccess.ReadWrite))
                        {
                            StreamWriter writer = new StreamWriter(fileStream);

                            for (int i = 0; i < m_noteCount; i++)
                            {
                                //writer.Write(m_arrNoteDate[i].ToShortDateString());
                                writer.Write(m_arrNoteDate[i].ToString("d", CultureInfo.InvariantCulture));
                                writer.Write(" ");
                                writer.Write(m_arrNoteString[i]);
                                writer.WriteLine("~`");
                            }
                            writer.Close();
                        }
                    }
                    else
                    {
                        storagefile.CreateFile("NotesFile.txt");
                        using (IsolatedStorageFileStream fileStream = storagefile.OpenFile("NotesFile", FileMode.Create, FileAccess.ReadWrite))
                        {
                            StreamWriter writer = new StreamWriter(fileStream);

                            for (int i = 0; i < m_noteCount; i++)
                            {
                                //writer.Write(m_arrNoteDate[i].ToShortDateString());
                                writer.Write(m_arrNoteDate[i].ToString("d", CultureInfo.InvariantCulture));
                                writer.Write(" ");
                                writer.Write(m_arrNoteString[i]);
                                writer.WriteLine("~`");
                            }
                            writer.Close();
                        }
                    }
                }
            }
            catch { }
        }
    }

Could anyone tell me in which condition the Exception is thrown. I read somewhere that when there is not enough of space, such exception will be thrown.

Lastly, I have 4 isolated storage files to which i write values.Does the following method remove all 4 of them?

IsolatedStorageFile storagefile = IsolatedStorageFile.GetUserStoreForApplication();
storagefile.Remove();

I would be really grateful if someone could clarify these.

Thank you,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T20:15:33+00:00Added an answer on June 3, 2026 at 8:15 pm

    The call to Save would fail if there wasn’t enough space.
    As we can’t see what the WriteXxxxToFile() methods are doing, they could be doing something which could cause this issue.

    It could also be tied to issues where you have multiple threads trying to access the settings or the app closing or tombstoning but your save method taking too long.

    Your best bet for identifying the true cause would be to add some handling to support the scenario where a call to WriteToIsolatedStorage() raises such an exception and then log and report it as is appropriate to your app/needs.

    Regarding Remove, as per MSDN

    “This method irrevocably removes the entire isolated storage for the
    current users’s application and all its directories and files.”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I received an error report with the following stack trace for an app I
A user has sent in a crash report with the stack trace listed below
I have a published app and received a stack trace from a crash: android.view.WindowManager$BadTokenException:
I am trying to retrace a stack trace I received on the Android Market.
I am getting segmentation fault in getaddrinfo(). This is the stack trace. Program received
I just received the wierdest looking stack trace on my Developer Console. What puzzles
I received a Python project (which happens to be a Django project, if that
I received the following crash report in my Android application when trying to call
I've received report from the user of an app I've written that he gets
Is there a way to report Bugs, similar to the Android Feedback Client, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.