Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试从 WCF 服务获取流式输出。
我已将其设置transferMode为“ StreamedResponse”。当客户端从服务器接收到流时,它无法读取流。从服务器端调试时,我可以看到流有数据,但从客户端 stream.Length 抛出 NotSupportedException。将流读入缓冲区会导致读取 0 个字节。
transferMode
StreamedResponse
我使用 svcutil 生成了客户端代理,并且正在使用 .NET 3.0。有没有人遇到过类似的问题?
没有任何细节很难提供帮助,但请注意 VS2005 Cassini 服务器(asp.net 开发服务器)不支持通过 http 进行流式传输。