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 8587427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:34:01+00:00 2026-06-11T22:34:01+00:00

I am creating a Windows 8 app that needs to contain two main types

  • 0

I am creating a Windows 8 app that needs to contain two main types of data – List<Project> and List<User>, where Project and User are data models containing different types of data (including Lists of other objects etc).

I have previously been making Windows Phone apps, and there I simply used the application settings to store data in similar scenarios. So I hoped that would work in Windows 8 as well.

I have elected to use the ApplicationData.Current.LocalSettings-structure to save my app data. However, whenever I try to save my data, I get this type of error:

WinRT information: Error trying to serialize the value to be written to the application data store Additional information: Data of this type is not supported.

The models are marked with [DataContract] attributes if that makes any difference.

As far as I have understood Microsoft, only standard data types (like booleans, strings etc) can be saved in this fashion. Is this correct?

And if so, how could I save data structured in this way?

Help would be greatly appreciated!

  • 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-11T22:34:02+00:00Added an answer on June 11, 2026 at 10:34 pm

    Complex types will cause a bit of grief, I cannot confirm that it isn’t possible, but there are other options.

    In situations where I want to store application data without the overhead of a database engine I use serialization. Depending on the composition of your types (boil down to simple data types and have public getter/setters) you can use XML serialization and/or binary serialization.

    XML serialization can be preferable in situations where it’s handy to be able to review (edit) the data outside of the scope of the application. (debugging, etc.) However it imposes more limitations on the data unless you opt for hand-coding custom serializers. Binary serialization is more flexible, and combined with compression and encryption gives you more a compact/disguised/secured data storage option. (A bit extra cost in time to compress/decompress and encryption if used.)

    Unfortunately binary won’t be that well suited to stick something into local application data without doing something like converting it first into a Base64 string. (Results in a potentially huge blob of text) Typically with serialization options I look at saving files in a nominated folder that the user has sufficient permissions for.

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

Sidebar

Related Questions

My ASP.NET MVC intranet app has a data repository that uses current user's Windows
I'm creating a WP7 app that needs to continue running when the user is
I'm creating a Windows app that automatically updates itself. I'm not using ClickOnce for
I am creating an MVC Intranet app with windows authentication. The data being accessed
I'm creating a windows insaller for app that wll write some files to home
I am creating a mobile app that needs to be connected with mysql. I
I'm creating a Windows Phone 7 app which allow to listen a web radio.
I am creating a system tray app which monitors mouse clicks in Windows. I
I am creating a windows phone application, which need to store some data in
I'm creating a windows service that will let different users connect to the PC

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.