1
Vote

Stream capacity must be positive

description

If the HttpResponse object returns nothing then its ContentLength is set to -1 which in turn throws a "capacity must be positive" error when creating a MemoryStream object to accept the HttpResponse stream.

comments