.NET Framework Bookmark and Share   
 index > Windows Communication Foundation > reliableSessionOverHttps binding with large dataset
 

reliableSessionOverHttps binding with large dataset

I am switching from basicHttpBinding to reliableSessionOverHttps because of problems with the corporate proxy.
Before, my client configuration basicHttpBindingbinding had settings for things like maxBufferSize and maxReceivedMessageSize which I need.
How do I add these settings to reliableSessionOverHttpsbinding ?
Right now I'km getting a error whichI assume is caused bybuffer overflow : "The remote server returned an unexpected response: (400) Bad Request."

Thanks,Peter
peter cli
reliableSessionOverHttps is a sample not a supported standard binding. Its there to demo channel composition into a binding not to give a production strength binding.

I would be very interested as to wy basicHttpBinding isn;t working for you? I would suspect we can solve this with a standard binding. So what are you trying to do and what issue are you seeing?
Richard Blewett, thinktecture - http://www.dotnetconsult.co.uk/weblog2
Twitter: richardblewett
Richard Blewett
Richard,

basicHttpBinding works fine on the inside network. But when we test with the corporate proxy , we see this error: "An operation was attempted on a nonexistent network connection" . I read that reliable session helps with proxy intermediaries (http://msdn.microsoft.com/en-us/library/ms733136.aspx).
Background : The wcf is hosted by a NT Service. The web servicecontains using Microsoft Sync Services for ADO.NET , to upload ~ 61,000 sql server rows.
To avoid insufficient memory , I used streadmed, like this :

      <basicHttpBinding>
           <binding name="HttpBindingConfigurationStream" maxReceivedMessageSize="200000000" maxBufferSize="200000000" transferMode="Streamed"  >
          <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
          maxBytesPerRead="4096" maxNameTableCharCount="16384" />
       
any help is much appreciated.
Peter
peter cli
Hi Peter,

Please refer to here:
http://msdn.microsoft.com/en-us/library/ms731913.aspx

Some WCF features, such as reliable messaging, transactions, and SOAP message-level security, rely on buffering messages for transmissions. Using these features may reduce or eliminate the performance benefits gained by using streaming. To secure a streamed transport, use transport-level security only or use transport-level security plus authentication-only message security.

I think that you need to modify the application design to use buffered mode pattern.
Best regards,
Riquel
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Riquel_Dong

You can use google to search for other answers

Custom Search

More Threads

• Problem debugging the service
• choices for faulted channel on proxy object
• The communication object cannot be used because it is in the Faulted state.
• Compact Framework Support?
• WCF Service on windows server for platform independent client consumption.
• WebServices to WCF (Proxy Class)
• svcutil.exe Problem
• creating service.svc file
• Security Help
• abt ease and safe way for the database