ReadTimeout threw an exception when converting byte array to Stream

前端 未结 4 700
独厮守ぢ
独厮守ぢ 2021-01-20 06:33

I got this error

ReadTimeout = \'((System.IO.Stream)(ms)).ReadTimeout\' threw an exception of type \'System.InvalidOperationException\'.

M

4条回答
  •  萌比男神i
    2021-01-20 07:17

    You can use the ReadTimeout/WriteTimeout properties only if the stream support timing out. You can check this via the CanTimeout property. If the CanTimeout property returns false all access to these properties should raise an InvalidOperationException.

提交回复
热议问题