Для выполнения операции записи при отключенном свойстве AllowWriteStreamBuffering необходимо задать неотрицательное значение свойству ContentLength или значение 'true' свойству SendChunked.
Click to search this error in Google
English version
When performing a write operation with AllowWriteStreamBuffering set to false, you must either set ContentLength to a non-negative number or set SendChunked to true.