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 7736037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:38:56+00:00 2026-06-01T07:38:56+00:00

We have a lot of web applications, configured using custom sections (in their web.config

  • 0

We have a lot of web applications, configured using custom sections (in their web.config) that depend on sectionHandlers declared in the machine.config.

As we have several versions of these sectionHandlers, applications that want to use a new sectionHandlers have to force “assembly redirection” by using the tag <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> in their web.config. We can indeed not modify the declaration of the sectionHandlers in the machine.config as long as there are still other applications using the oldest version.

The binding redirection works fine for all the assemblies loaded by the applications using the tag mentioned before – except for the assemblies containing types used to define a WCF behavior in the web.config’s system.serviceModel section.

For example, some of our applications are using a custom behavior Extension named mainframeFormatter (See in the web.config in the example here after). When adding a bindingRedirect from a version 1.1.0.0 of the assembly containing the type mainframeFormatter to a version 1.2.0.0, we get the following error:

An error occurred creating the configuration section handler for
system.serviceModel/behaviors: Extension element’mainframeFormatter’
cannot be added to this element. Verify that the extension is
registered in the extension collection at
system.serviceModel/extensions/behaviorExtensions.

Notice that we only have the problem with the “behaviors” and not with the “bindings”.
Is this the expected behavior of the Binding Redirection with WCF behaviors or is this a bug ?

Here’s a sample of web.config which fails to be parsed when using binding redirection:

<system.serviceModel>
  <extensions>
    <behaviorExtensions>
      <add name="mainframeFormatter"
              type="Framework.Communication.Mainframe.ClientEndpointBehaviorExtensionElement,
                       Framework.Communication.Mainframe, Version=1.1.0.0, Culture=neutral,
                       PublicKeyToken=f510307097254a31"/>
    </behaviorExtensions>
    <bindingExtensions>
      <add name="mainframeBinding" 
              type="Framework.Communication.Mainframe.BindingCollectionElement,
                       Framework.Communication.Mainframe, Version=1.1.0.0, Culture=neutral,
                       PublicKeyToken=f510307097254a31"/>
    </bindingExtensions>
  </extensions>

  <behaviors>
    <endpointBehaviors>
      <behavior name="ClientEndpointBehavior">
        <mainframeFormatter />  <--- Problem is on parsing this with assemblyBinding enabled
      </behavior>
    </endpointBehaviors>
  </behaviors>

  <bindings>
    <mainframeBinding>
      <binding name="MyCustomBinding"/>
    </mainframeBinding>
  </bindings>

</system.serviceModel>

<runtime>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
      <assemblyIdentity name="Framework.Communication.Mainframe"
                               publicKeyToken="f510307097254a31" />
      <bindingRedirect oldVersion="1.1.0.0" newVersion="1.2.0.0" />
    </dependentAssembly>
  </assemblyBinding>
</runtime>

I know that changing the version in the behaviorExtension settings solves the problem. But I am curious why the redirection does not work.

  • 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-06-01T07:38:57+00:00Added an answer on June 1, 2026 at 7:38 am

    They will provide a hotfix soon.

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

Sidebar

Related Questions

I have several ASP.NET MVC 3 Web applications that have a lot of common
Looking at a lot of web applications (websites/services/whatever) that have a 'streaming' component (typically
I'm working on a web application using JSP/Servlets, etc. And I have a lot
I have a php web application that uses big cookies to store a lot
I have an internal web application, that is IE specific, and uses a lot
In my 4 years of experience,I have developed a lot of web applications. Now,
I have always seen a lot of hidden fields used in web applications. I
I'm building Pylons web applications that use a lot of jQuery and AJAX/JSON to
I have developed web applications using JSF (myfaces components). But in these days of
We have Flex applications that connect to our ASP.NET 3.5 Web Applications and usually

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.