Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinRT Exception #5

Closed
raver99 opened this issue Mar 31, 2017 · 6 comments
Closed

WinRT Exception #5

raver99 opened this issue Mar 31, 2017 · 6 comments
Assignees

Comments

@raver99
Copy link

raver99 commented Mar 31, 2017

Hi,

For WinRT apps I get an exception while trying to store the versionTrail list into the app settings.
I get: "Error trying to serialize the value to be written to the application data store".

I think storing lists in the data store is not supported, so a serialization is needed.
I will add a PR with a fix.

Cheers,
Roland

raver99 added a commit to raver99/VersionTrackingPlugin that referenced this issue Mar 31, 2017
raver99 added a commit to raver99/VersionTrackingPlugin that referenced this issue Mar 31, 2017
@colbylwilliams colbylwilliams self-assigned this Apr 20, 2017
@johnshardman
Copy link

Has this fix made it to a new NuGet package? If so, could you point me at it please.

@jerone
Copy link

jerone commented Nov 2, 2017

I'm getting the same issue when using this plugin in UWP...

Exception thrown: 'System.Runtime.InteropServices.COMException' in System.Private.CoreLib.ni.dll
WinRT information: Error trying to serialize the value to be written to the application data store
An exception of type 'System.Runtime.InteropServices.COMException' occurred in System.Private.CoreLib.ni.dll but was not handled in user code
WinRT information: Error trying to serialize the value to be written to the application data store
Data of this type is not supported.

Error trying to serialize the value to be written to the application data store

It appears that the similar issue #8 was fixed by PR #9, which is closed without reason.
Also this PR raver99#1 from @raver999 looks interesting.

It works fine in iOS and Android.


Xamarin Forms 2.4.0.38779
Plugin.VersionTracking 2.0.1

@jamesmontemagno
Copy link
Collaborator

I'll take a look. Is this only when tracking?

@jerone
Copy link

jerone commented Nov 3, 2017

@jamesmontemagno commented on Nov 3, 2017, 2:48 PM GMT+1:

I'll take a look. Is this only when tracking?

This is immediately on the call CrossVersionTracking.Current.Track();.

jamesmontemagno added a commit that referenced this issue Nov 3, 2017
@jamesmontemagno
Copy link
Collaborator

All fixed up :)

@jerone
Copy link

jerone commented Nov 3, 2017

I can confirm it being fixed in v2.1.0. Thanks for fixing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants