Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Indigo

TCP Streaming is Broke in Beta 2

 
 
Thread Tools Display Modes
Old 05-31-2006   #1 (permalink)
Mike Russo
Guest


 

TCP Streaming is Broke in Beta 2

The release notes document for Beta 2 lists the following known issue with
WCF Stream types and operations:

=========================================
4.1 When Using WCF Steam Types and Operations, May Get
QuotaExceededException When Using Binary Encoding
When using types that derive from System.IO.Stream as input or output
parameters in service operations, QuotaExceededException may be thrown if the
binary encoding is being used, even though no quotas have actually been
exceeded. This encoding is the default for several standard bindings, such as
NetTcpBinding.

To work around this problem, set the MaxBytesPerRead quota to the value 4200
(or some other number that is divisible by 8 but not by 16) instead of the
default value of 4096. You can do this by changing the setting in your
application’s configuration file. MaxBytesPerRead is contained in the
ReaderQuotas subsection of the binding configuration section.
=========================================


The problem I see with the stated work-around is that it cannot be applied
to a streamed TCP binding. To set the transfer mode for a TCP binding to
Streamed in a config file, we must use the CustomBinding/Binding elements.
But, the readerQuotas element is not a valid child element of
CustomBinding/Binding (or their tcpTransport child element). So, in
practice, there is no way to implement this work-around and therefore Beta 2
has broken TCP streamed services!

(I really hope I'm wrong about this!)

BTW, whatever happened to the TransferMode attribute for the netTcpBinding
element? In the earlier pre-releases, the NetProfileTcp binding had a
TransferMode attribute. Why are we forced to use CustomBinding to switch to
Streamed mode?

Old 06-05-2006   #2 (permalink)
Mike Russo
Guest


 

RE: TCP Streaming is Broke in Beta 2

Please see answers at:

http://forums.microsoft.com/msdn/Sho...false&siteid=1

"Mike Russo" wrote:

> The release notes document for Beta 2 lists the following known issue with
> WCF Stream types and operations:
>
> =========================================
> 4.1 When Using WCF Steam Types and Operations, May Get
> QuotaExceededException When Using Binary Encoding
> When using types that derive from System.IO.Stream as input or output
> parameters in service operations, QuotaExceededException may be thrown if the
> binary encoding is being used, even though no quotas have actually been
> exceeded. This encoding is the default for several standard bindings, such as
> NetTcpBinding.
>
> To work around this problem, set the MaxBytesPerRead quota to the value 4200
> (or some other number that is divisible by 8 but not by 16) instead of the
> default value of 4096. You can do this by changing the setting in your
> application’s configuration file. MaxBytesPerRead is contained in the
> ReaderQuotas subsection of the binding configuration section.
> =========================================
>
>
> The problem I see with the stated work-around is that it cannot be applied
> to a streamed TCP binding. To set the transfer mode for a TCP binding to
> Streamed in a config file, we must use the CustomBinding/Binding elements.
> But, the readerQuotas element is not a valid child element of
> CustomBinding/Binding (or their tcpTransport child element). So, in
> practice, there is no way to implement this work-around and therefore Beta 2
> has broken TCP streamed services!
>
> (I really hope I'm wrong about this!)
>
> BTW, whatever happened to the TransferMode attribute for the netTcpBinding
> element? In the earlier pre-releases, the NetProfileTcp binding had a
> TransferMode attribute. Why are we forced to use CustomBinding to switch to
> Streamed mode?
>

 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixing something that isn't broke! Maffysdad Live Mail 21 04-30-2008 09:02 AM
Folders: If It Ain't Broke, DON'T FIX IT!! mavigozler Vista General 2 01-25-2008 03:05 PM
My laptop broke :( Mrjingjing Vista General 8 08-29-2007 06:18 PM
Vista Help is Broke Kevin K4VD Vista General 9 04-24-2007 12:32 AM
Streaming photo's from Vista beta 2 to xbox 360. Arkanok Vista General 1 06-10-2006 06:35 AM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50