This project is read-only.

Runtime error on WP75 / XNA

Feb 3, 2013 at 4:37 PM
Does this work with XNA / WP7 ?

It compiles fine, but I get the following error below serializer.Serialize()


A first chance exception of type 'System.MethodAccessException' occurred in Polenter.SharpSerializer.Compact.dll
An unhandled exception of type 'System.MethodAccessException' occurred in Polenter.SharpSerializer.Compact.dll
Additional information: Attempt to access the method failed: System.IO.FileStream..ctor(System.String, System.IO.FileMode, System.IO.FileAccess)
Feb 3, 2013 at 5:05 PM
hi, I don't know if it's the reason, but Polenter.SharpSerializer.Compact.dll target Windows Mobile and not WP. For WP the Silverlight version should be used. I don't have the environment you defined and therefore I cannot test it.
Feb 3, 2013 at 7:22 PM
Thanks for the response.

I've tried all the DLLs. Some don't work at all (dev env references), right now I think this is the 4 WP/SL target.

I'm using VS2012, with a 7.1 targeted XNA only project.
Feb 3, 2013 at 7:24 PM
I've tried all. This is the WP/SL 3 or 4 version.

My project is VS2012 XNA only targeting 7.1

Thanks for the response.
Mar 21, 2014 at 5:39 PM
Hi, since v. there is a portable version of SharpSerializer. It supports .NET 4.0 and above, Silverligt 4 and above, Windows Phone 7 and above, WinRT - Metro and Xbox 360.