I have a WCF service with basic authentication that can be used by clients to upload data. The clients are .NET 2 clients. The file size is about 1-10 Mb and the service receives them in a streaming way. The configuration settings are adjusted to support
files up to 500 Mb and this is tested and works fine in our lab environment.
About 99% of the uploads are successful, however sometimes the uploaded file is corrupt. The log files on the service side show this error: 'An exception has been thrown when reading the stream'.
I added the full stacktrace at the bottom.
What could be causing this? If I look at the client code I noticed that the connection isn't closed or disposed, but this is the same for every client. Also a .NET 2 client cannot close the connection because that method is not available. Besides that
I found an article on the WCF Security Guide with a sample client call and even there the client isn't closed (while that is done for .NET 3.5 clients)(http://wcfsecurity.codeplex.com/wikipage?title=Internet%20%E2%80%93%20WCF%20and%20ASMX%20Client%20to%20Remote%20WCF%20Using%20Transport%20Security%20(HTTP)).
Is it n
View Complete Post