Questions tagged [wcf-streaming]
21 questions
7
votes
1 answer
WCF Streaming File Transfer ON .NET 4
I need a good example on WCF Streaming File Transfer.
I have found several and tried them but the posts are old and I am wokding on .net 4 and IIS 7 so there are some problems.
Can you gives me a good and up-to-date example on that.

tugberk
- 57,477
- 67
- 243
- 335
7
votes
1 answer
WCF Streaming - Limiting speed
This is a severe problem in my application for some months with out finding any good solution.
I noticed that C# manage the way Stream class is streaming in WCF, without considering my configuration.
Firstly, I have a class that inherit from…

Stav Alfi
- 13,139
- 23
- 99
- 171
6
votes
2 answers
Use of MessageContract crashes WCF service on startup
I'm trying to add a MessageContract to my WCF service, similar to what's going on in this question: WCF: using streaming with Message Contracts
Here's the exception I get:
The operation 'UploadFile' could not be loaded because it has a parameter or…

rafale
- 1,704
- 6
- 29
- 43
6
votes
1 answer
Streaming with WCF and MTOM
I am using WCF bindings with streamed transfer mode, for both uploading and downloading binary content to/from a service. I've managed to get it working. I'll include the configuration, contracts, etc for reference.
I've made some tests to benchmark…

Yiğit Yener
- 5,796
- 1
- 23
- 26
5
votes
2 answers
How to delete file after end of streaming wcf
I uses netTcpBinding and streaming to send files from one server to another like described in this codeproject article,as I understand In wcf when we want to send stream we should create and return it as message contract, the question is how to get…

Arsen Mkrtchyan
- 49,896
- 32
- 148
- 184
4
votes
2 answers
upload streaming to WCF IIS 7 hosted service not working
I have a wcf service I am setting up to run under IIS 7. I have the service set to streaming for the transfermode.
When I self host the service in a console application every thing seems to work ok. But when the client connects to an iis hosted…

Aaron Fischer
- 20,853
- 18
- 75
- 116
3
votes
1 answer
Can Stream.CopyTo() method save the streams incomplete?
I have a WCF service which allows me to upload files in chunks. What I am wondering is could this code can cause the uploaded stream to be only partially appended to the target stream in any case?
I have my logs that shows me that all the sent…

Tolga Evcimen
- 7,112
- 11
- 58
- 91
3
votes
1 answer
WCF, Streaming, Message Contract Error: Error in deserializing body of request message
I have developed a bit of a complicated WCF Service method. I would like to use the Streaming transfer mode, and because I have more than one parameter, I have defined a MessageContract with a body and a header.
[MessageContract]
public class…

essedbl
- 520
- 1
- 7
- 19
2
votes
0 answers
Is it possible to mix streamed transfer and non streamed transfer WCF OperationContracts within the same service?
I have a set of operations that are defined within a single ServiceContract and now two of them have been switched over to take and return MessageContracts directly which contain a Stream body as outlined within the MSDN documentation. I've tested…

jpierson
- 16,435
- 14
- 105
- 149
2
votes
2 answers
Receive large object with WCF
I have tried to receive a large object with XML over WCF. It doesn't work if I set maxStringContentLength={Default value}.
It only works when I increase maxStringContentLength but it decreases the performance.
Is there any solution to this issue…

aru
- 21
- 1
2
votes
1 answer
WCF Webservice pass messagecontract with Stream and return a string to Client
I want to create WCF web service to recalculate the formula of .xlsx and .xls files(want to determine the extension type in service and return back processed fileID back to client and then another service method to get file from the returned…

user2015
- 63
- 8
2
votes
2 answers
Streamed transfer restrictions with WCF
According to the following guide at MSDN, any operations that use streamed transfers can only have one input/output parameter.
Link: http://msdn.microsoft.com/en-us/library/ms731913.aspx (see heading "Restrictions on Streamed Transfers")
I'm using…

rafale
- 1,704
- 6
- 29
- 43
2
votes
1 answer
Can't get file size when loading from WCF service host by web browser
I have some test WCF service with streamed webHttpBinding, which allows to download files by web browser. The problem is browser doesn't show file size and download progress.
This is the service contract:
[ServiceContract]
public interface…

ds1709
- 189
- 3
- 11
2
votes
0 answers
How to upload a file in WCF along with identifying credentials?
I've got an issue with WCF, streaming, and security that isn't the biggest deal but I wanted to get people's thoughts on how I could get around it.
I need to allow clients to upload files to a server, and I'm allowing this by using the…

dks1983
- 165
- 2
- 8
1
vote
1 answer
What is the reason for WCF not supporting request streaming over HTTP with HTTP authentication?
WCF does not support request streaming (aka streaming upload of large data) over HTTP with HTTP authentication. My first guess was it is because of authentication handshake causing the streaming request to be send twice to the server. But that is…

Peter Sladek
- 900
- 9
- 8