Reputation: 33
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 ( http://msdn.microsoft.com/en-us/library/system.servicemodel.basichttpbinding.maxbufferpoolsize). 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
Upvotes: 0
Views: 1354
Reputation: 87258
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.
Upvotes: 1