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.

Custom Serializer fails in UWP Store App

See original GitHub issue

I’ve incorporated MessagePack as a custom serializer for DMS in our web api and UWP client app, pretty much a copy and paste from the DMS docs.

It works brilliantly on my dev machine but when published to the Micro$ Store DMS throws Dotmim.Sync.SyncException: Dynamic code generation is not supported on this platform

I assume that is a WinRT limitation. Does anyone have any advice on how to incorporate MessagePack as a custom serializer for DMS in a WinRT app? A simple can’t be done might save save pain for others striking this issue.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
vundercommented, Nov 28, 2021

Check types in Default.rd.xml Try to add your serializable type the like this

    <Type Name="Full_Type_Name_Here" XmlSerializer="Required All" Dynamic="Required All" />
0reactions
vundercommented, Nov 28, 2021

What stops you from changing sync address for that flight

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Problems with DataContractSerializer ...
Below is a very short UWP unit test that attempts to serialize and then deserialize a class called Car using a DataContractSerializer.
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 >
UWP DataContractSerializer fails to load configuration ...
I am trying to serialize a simple class in a UWP app using the following code: var serializer = new DataContractSerializer(typeof(Data)); ...
Read more >
Cannot Build UWP App, Error WMC1006
I can build in Visual Studio just fine. I have four packages, 2 UWP, 1 .NET Standard Core project, and an .NET 4.6...
Read more >
Migrating Your Windows 8.x App to .NET Native
XmlSerializer fails to generate code for a type that has methods attributed with any of the following attributes: OnSerializingAttribute.
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