Skip to content

Unable to read beyond the end of the stream. #3941

Discussion options

You must be logged in to vote

I've never figured out how to get the CSLA symbols to load, so it isn't just you. It is an area where I'd sure welcome help!

The ClaimsPrincipal type isn't serializable, so MobileFormatter has a special case that detects a ClaimsPrincipal and wraps it in a CslaClaimsPrincipal, which is serializable.

Under the covers, the CslaClaimsPrincipal gets a byte[] from the actual ClaimsPrincipal, and that's what gets transferred over the wire.

On the other side, it should be creating a new ClaimsPrincipal based on that byte[] data.

Are you, by chance, still running on .NET Framework? It seems to me that there was once (and maybe still is) a bug in .NET Framework where ClaimsPrincipal couldn't deser…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@ajohnstone-ks
Comment options

@ajohnstone-ks
Comment options

@rockfordlhotka
Comment options

Answer selected by ajohnstone-ks
Comment options

You must be logged in to vote
1 reply
@ajohnstone-ks
Comment options

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