question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Serialization Exception in UWP

See original GitHub issue

Hello! I’m here to create a new separated issue because it still fails:

As you may remember, I created the simple project for you to see it failing. I don’t really know if it’s completely related to EXS or with EXS + UWP or just UWP, but it’s failing in the simplest scenario and it’s driving me crazy. Could you, please, take a look? Thanks!

Clone this: https://github.com/SuperJMN/RtfIssue

Steps to reproduce:

  1. Build+run+deploy (deploy in either x86 or x64, AnyCPU won’t work)
  2. Write some text inside the box. It’s a class derived from RichEditBox I had to create, because the original doesn’t offer a bindable Text property.
  3. Click on the Save button.

It can happen 2 things:

  1. An exception is thrown
  2. The file is written, but in a corrupted state. Check the resulting XML in the file to see the problem if the exception wasn’t thrown.

I’m now sure that it’s a problem with EXS because if you use the official XmlSerializer, it writes the XML file just right.

If you need any further information, please tell me!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
WojciechNagorskicommented, Apr 23, 2018

I’ve released version 2.1.3 on Myget. https://www.myget.org/feed/wojtpl2/package/nuget/ExtendedXmlSerializer/2.1.3 Can you check now?

1reaction
SuperJMNcommented, Apr 23, 2018

Working now! Thank you @wojtpl2 !

Read more comments on GitHub >

github_iconTop Results From Across the Web

SerializationException Class (System.Runtime.Serialization)
Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (Inherited from Exception) ...
Read more >
uwp - .NET Native serialization exception in Release mode ...
I have a class called LicenseHelper and it uses StoreContext class under Windows.Services.Store namespace. Everything builds fine on debug mode.
Read more >
System.Text.Json throw exceptions on UWP in Release Build
Just to bump this with something I discovered today, calls to JasonSerializer.Serialize() were working fine using UWP .NET Native against .NET ...
Read more >
Exceptions while using Newtonsoft.Json in UWP Build
I'm using NewtonSoft.Json to serialize some objects to Json for storing off in PlayerPrefs. It works flawlessly in Unity for Windows but in ......
Read more >
Help, my Unity HTTP-Requests break on UWP!
Serialize () on UWP will throw an exception and stop your method call from executing. Curiously, JsonSerializer.Deserialize() seems to work without issue.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found