Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 508123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:52:29+00:00 2026-05-13T06:52:29+00:00

When using a WSHttpBinding in WCF with reliableSessions enabled, my service reference updates itself

  • 0

When using a WSHttpBinding in WCF with reliableSessions enabled, my service reference updates itself to:

<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="true">
</reliableSession>

I cannot add the maxRetryCount attribute to the reliableSession as long as the binding is configured as a WSHttpBinding.

Now my question: what is the value of maxRetryCount when using a WSHttpBinding, and is there any way to change this in config; without the use of a CustomBinding?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T06:52:29+00:00Added an answer on May 13, 2026 at 6:52 am

    You cannot set the maxRetryCount on a standard wsHttpBinding configuration. In order to set that value, you need to create a separate custom binding and then reference that from your service or client config:

      <system.serviceModel>
        <bindings>
          <customBinding>
            <binding name="wsCustomBinding">
              <reliableSession maxRetryCount="15"/>
              <textMessageEncoding/>
              <httpTransport />
            </binding>
          </customBinding>
        </bindings>
        <services>
          <service name="MyService">
            <endpoint address="http://localhost:7878/MyServoce"
                      binding="customBinding"
                      bindingConfiguration="wsCustomBinding"
                      contract="IMyService" />
          </service>
        </services>
      </system.serviceModel>
    

    Defining a custom binding isn’t hard – but you need to make sure you specify the elements that make up the binding in the right order – see the MSDN docs on custom bindings for a reference.

    If you want to share the custom binding configuration between server and client, you could also put that <bindings> section into a separate bindings.config file, and then reference that external file from your web.config/app.config:

      <system.serviceModel>
        <bindings configSource="bindings.config">
    

    Visual Studio will complain about this and show red squiggly underlines – but trust me – the technique works, I use it in production every day (the Visual Studio XML schema describing the config stuff isn’t complete and accurate).

    Marc

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to add WCF service with wsHttpBinding to soapUI. I am using
I have a WCF web service using wsHttpBinding that I am consuming from a
I am creating a WCF web service using wsHttpBinding and a corresponding application that
I have a WCF service using the wsHttpBinding. How do i call this service
I am developing a secure set of service using WCF wsHttpBinding. I had to
I have a WCF service using wsHttpBinding with message encryption. I use the same
I am accessing a web service using WCF. Using WSHttpBinding, Security mode is set
I need to use multiple hosts under IIS for WCF. We're using wshttpbinding and
I am using WCF REST Start kit to build a RESTFul service. I defined
I created a WCF service and exposed three endpoints which are basicHttpBinding, wsHttpBinding and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.