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

GZipWebClient throws NotImplementedException when used in WP7 background agent #9

Open
camradal opened this issue May 7, 2013 · 0 comments

Comments

@camradal
Copy link

camradal commented May 7, 2013

Apparently this check fails

if (_deflatedStream.CanSeek)
    _deflatedStream.Seek(6, SeekOrigin.Current);

Even though the stream claims it supports seek, it actually does not, resulting in NotImplementedException being thrown.

I suspect it has something to do with the different implementation of streams in background agents, since the streams in the main assembly work as expected.

As a workaround, I removed CanSeek check and always do 6 byte reads and it seems to work even for background agents.

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

No branches or pull requests

1 participant