Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Trouble sending a Stream variable through a WCF Service
1 replies. Latest Post by Allen Chen – MSFT on June 12, 2008.
(0)
Cooxter
Member
8 points
6 Posts
06-11-2008 3:17 AM |
For my silverlight application i have written a service that extracts data from a database. I am using a custom class that represents the data returned by a query. Everything was working fine until i decided to add a Stream variable to the class. This caused the proxy method (that returns the class object) to start crashing my silverlight application, the wcftestclient couldn't test the method either.
I am quite sure that it's a problem with the fact that it's a Stream, in an act of desperation i changed the variable into a String and everything worked perfectly fine.
What was also weird is when i tried to call the method from a test website (not throught the service), it worked fine and returned a Stream without a problem. The problem started, as stated above, when i tried calling it from the silverlight application (which is btw. in the same domain).
So my question is: Is there some other way that you need to set up the DataMembers/Contracts/Serialization to make the Streams work.. or maybe it's a case of setting up the transferMode in the web.config and not just leaving it at default basicHttpBinding.
Allen Ch...
Star
13862 points
1,803 Posts
06-12-2008 11:23 PM |
Hi:
Streaming in WCF is not supported in current version.
Regards