Code Mahek
  • Blog
  • About
  • Contact
  • Random Clicks
  • Resume
  • Ava Chat Bot

Fragrance
​of Programming

Windows 8.1 App Development

3/24/2015

Comments

 
Currently I am developing Epub Reader App for Windows 8.1, so while developing I cam through an interesting issue which I am sure many Developer might have came across.
At one place I was using the below code,

Windows.Storage.ApplicationDataContainer localSettings =
                Windows.Storage.ApplicationData.Current.LocalSettings;

                Windows.Storage.StorageFolder localFolder = Windows.Storage.ApplicationData.Current.LocalFolder;

                localSettings.Values["ePubSetting"] = "";

After some days I need to rest the local setting so I went to "C:\Users\<user>\AppData\Local\Packages" path and deleted the corresponding folder.

Now whenever I was running the application in the Debug mode in Visual Studio I was getting exception "Loading the state store failed" at first line in the above code. In the beginning I was unable to understand the issue and I even tried restarting the Visual Studio but still it was the same.
Picture
But than after some analysis I found the fix. Whenever you run the application in the Debug mode on your local machine, .NET Framework first installs that app in your machine. So if you want to reset the settings or fix the above issue than apart from deleting the folder from the above path you even need to uninstall the application.
Picture
I hope its helpful. Thanks and Happy Coding.

Rishi
Comments
comments powered by Disqus

    RSS Feed

    Categories

    All
    Azure
    C#
    Cloud
    CodeProject
    CSharp
    DotNet Core
    Jetbrains
    .NET
    Rider
    Source Generators
    SQL
    Tech News
    Ubuntu
    Visual Studio 2015
    Visual Studio 2019
    Windows
    Windows 10

    Archives

    May 2020
    February 2019
    January 2019
    December 2018
    May 2018
    December 2017
    November 2017
    October 2017
    September 2017
    July 2017
    May 2017
    April 2017
    May 2015
    April 2015
    March 2015

    View my profile on LinkedIn

Location

Contact Us

    Subscribe Today!

Submit
  • Blog
  • About
  • Contact
  • Random Clicks
  • Resume
  • Ava Chat Bot