开发者

wcf file upload netnamedpipe pipe closed error

开发者 https://www.devze.com 2023-02-03 19:26 出处:网络
I am uploading a file in asp.net..via file upload control. I am taking the stream from posted file and convert to byte array and pass to service.

I am uploading a file in asp.net..via file upload control. I am taking the stream from posted file and convert to byte array and pass to service. I am getting this error:here was an error writing to the pipe: The pipe is being closed. (232, 0xe8).

We r using netNamedPipe binding..hosted in windows service..T开发者_高级运维his error is for uploading over 6KB..No issue in downloading..I have increased the timeout and max message size values to large ones..but still error is there..


What helped me was increasing the ReceiveTimeout of the netNamedPipe Binding, since it controls the channel idle timeout. Something like that:

<netNamedPipeBinding>
<binding name="myBinding" receiveTimeout="infinite">
</binding>

See also this question: How can I make Named Pipe binding reconnect automatically in WCF

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号