Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesMultiple bindingRedirects during a module installMultiple bindingRedirects during a module install
Previous
 
Next
New Post
7/24/2017 4:10 AM
 
Anyone know the proper syntax within the configuration node of the dnn manifest that will properly update the web.config and create a dependent Assembly with multiple bindingRedirects during a module install?

I've tried different permuations of the update & add action parameters, and the collision save & overwrite from manifest config documentation but each time i run an install it seems always overwrite and leave me with the last bindingRedirect node in the chain and none of the codeBase nodes.

I'm trying to achieve something like below in the target installation web.config :

      <dependentAssembly>
        <assemblyIdentity name="Test.Assembly" publicKeyToken="30ad4asdf4a6as3d" culture="neutral" />
        <bindingRedirect oldVersion="1.0.0.0-7.0.2.0" newVersion="7.0.0.0" />
        <bindingRedirect oldVersion="7.0.2.1-8.9.0.0" newVersion="8.0.0.0" />
        <bindingRedirect oldVersion="9.0.0.0-9.9.0.0" newVersion="9.0.0.0" />
        <codeBase version="7.0.0.0" href="bin/Test.Assembly/V7.0.1/Test.Assembly.dll" />
        <codeBase version="8.0.0.0" href="bin/Test.Assembly/V8.0.3/Test.Assembly.dll" />
        <codeBase version="9.0.0.0" href="bin/Test.Assembly/V9.0/Test.Assembly.dll" />
      </dependentAssembly>


I used the following in the dnn manifest:

                  <node path="/configuration/runtime/assemblyBinding/dependentAssembly/assemblyIdentity [@name='Test.Assembly']" action="udpate" key="name" 

collision="save">
                    <bindingRedirect oldVersion="1.0.0.0-7.0.2.0" newVersion="7.0.0.0" />
                    <bindingRedirect oldVersion="7.0.2.1-8.9.0.0" newVersion="8.0.0.0" />
                    <bindingRedirect oldVersion="9.0.0.0-9.9.0.0" newVersion="9.0.0.0" />
                    <codeBase version="7.0.0.0" href="bin/Test.Assembly/V7.0.1/Test.Assembly.dll" />
                    <codeBase version="8.0.0.0" href="bin/Test.Assembly/V8.0.3/Test.Assembly.dll" />
                    <codeBase version="9.0.0.0" href="bin/Test.Assembly/V9.0/Test.Assembly.dll" />       
                  </node>

I've also split out the bindingRedirect & codeBase elements into seperate nodes to try to get better results...

None succeeded.
 
New Post
7/30/2017 11:09 AM
 
So every module installation that doesn't reference the same version of an existing assembly used by DNN's installation will have to manually modify the target web.config?
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesMultiple bindingRedirects during a module installMultiple bindingRedirects during a module install


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out