Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

XmlSerializer Deserialize () System.NotSupportedException

Discussion in 'Windows' started by FlashMuller, Jan 6, 2016.

  1. FlashMuller

    FlashMuller

    Joined:
    Sep 25, 2013
    Posts:
    449
    Hey guys,
    I'm using the XmlSerializer class to save and load date. Just to make sure: I do know that System.IO is not supported on WSA and can tell that I've worked around that (using UnifiedIO from the AssetStore).

    Now: I can create my XML using XmlSerializer.Serialize(), store and open it; it works. I can NOT however Deserialize using the XmlSerializer, which is quite frankly just weird. The exception is below.

    Additional information: XLinqException thrown: 'System.NotSupportedException' in SYSTEM.XML.SERIALIZATION.NI.DLL

    Can anyone help on how to either get it working or work around that with a different class?

    Thanks,
    Daniel
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,664
  3. FlashMuller

    FlashMuller

    Joined:
    Sep 25, 2013
    Posts:
    449
    Aurimas,
    thanks for the link. But Deserialize / the XmlSerializer doesn't seem to be a part of that collection - or am I missing something?
    Thanks!
     
  4. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,664
    Those might be available on the system, we were only adding missing items. If you code compiles using .NET Core (default), then you are fine with it. I was referring more to System.IO replacements.