System.ArgumentException:Stream不可写 [英] System.ArgumentException: Stream was not writable
本文介绍了System.ArgumentException:Stream不可写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到错误System.ArgumentException:Stream is not writable
在行
使用(requestWriter = new StreamWriter(request.GetRequestStream()))
在重用期间(即,使用白化循环时)。你的帮助是appriciated!
I get the error "System.ArgumentException: Stream was not writable"
at the line
using (requestWriter = new StreamWriter(request.GetRequestStream()))
during the reuse(ie.,when using whitin the loop). Your help is appriciated!
推荐答案
I don't think its possible to reuse the request stream. So, I've created
a new (Http)WebRequest instance.
这篇关于System.ArgumentException:Stream不可写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文