fixed the problem for Store application of setting the content length to zero. The ContentLength is not exposed in the API you cannot set the header directly as it's reserved and all of this despite the fact that the property is actually supported at runtime (you can see it through reflection and it's public) - so the solution to write 0 bytes to the stream in such cases.