adamhathcock wrote:
I guess ReadToEnd requires length to properly function. GZipStream is a forward-only stream implementation so length won't necessarily be known (like if you're using a NetworkStream).This error is very weird. If I bound the above code in try-catch statement, I will still get my expected results (the exception still happened). This error only happened in Windows Phone 7, and dis not happen in Windows Phone 8 and Windows Store app.
Can you do without ReadToEnd?