Serialization Exception in UWP
See original GitHub issueHello! 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:
- Build+run+deploy (deploy in either x86 or x64, AnyCPU won’t work)
- Write some text inside the box. It’s a class derived from
RichEditBox
I had to create, because the original doesn’t offer a bindableText
property. - Click on the Save button.
It can happen 2 things:
- An exception is thrown
- 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:
- Created 6 years ago
- Comments:9 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?
Working now! Thank you @wojtpl2 !