setting maxBufferPoolSize of basicHttpBinding programmatically

I am trying to set the maxBufferPoolSize along with MaxReceivedMessageSize and MaxBufferSize. However, when I try to set it, i got the message "'maxBufferPoolSize' is not a member of 'System.ServiceModel.BasicHttpBinding'." I am using VS 2010. From MS Documentation, MaxBufferpoolSize is a member ( Why am I getting this error??? Please help. Thank you.

    Dim basicHttpBinding As BasicHttpBinding = New BasicHttpBinding()
    Dim endpointAddress As EndpointAddress = New EndpointAddress("/test.svc")
    basicHttpBinding.MaxReceivedMessageSize = "2147483647"
    basicHttpBinding.MaxBufferSize = "2147483647"
    **basicHttpBinding.maxBufferPoolSize = "2147483647"**

    basicHttpBinding.OpenTimeout = New TimeSpan(0, 20, 0)
    basicHttpBinding.CloseTimeout = New TimeSpan(0, 10, 0)
    basicHttpBinding.ReceiveTimeout = New TimeSpan(0, 10, 0)
    basicHttpBinding.SendTimeout = New TimeSpan(0, 10, 0)

    Dim Svc As Svc= New ChannelFactory(Of Svc)(basicHttpBinding, endpointAddress).CreateChannel
    '... do the binding


Per the comments, you're using Silverlight, so that property doesn't exist in that framework. There's no buffer pooling in Silverlight, which is why it doesn't compile.

Need Your Help

Swap two variables without using a temporary variable

c# algorithm swap

I'd like to be able to swap two variables without the use of a temporary variable in C#. Can this be done?

Cache state after reinstall app android

android caching install

I wonder the cache in android app will delete or override for each time reinstall app? Or It is still exist?