Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DLL Hell: Two different versions of the same DLL are requiredDLL Hell: Two different versions of the same DLL are required
Previous
 
Next
New Post
4/22/2009 7:51 PM
 

I'll preface this by saying "I am not a programmer!"

That being said, I am having a programming issue. I have two third party modules that require CookComputing.XmlRpcV2.dll. The problem being, they require different versions of that DLL, but the filename remains the same. If I include the old version, module A breaks, if I include the new version, Module B breaks.

Error message: Could not load file or assembly 'CookComputing.XmlRpcV2, Version=2.4.0.0, Culture=neutral, PublicKeyToken=a7d6e17aa302004d' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

How can I have these two different DLL's coexist within DNN despite having the same file name -- WITHOUT writing any code (since they are 3rd party modules.)

If that question can't be answered, then... if I were to go back to one of the developers, how do I get them to fix this issue? Which developer should fix it (the developer referencing the older version)?

 
New Post
4/23/2009 7:15 PM
 

Hi,

First solution: if you have a dedicated server and permission to add assemblies to the GAC, add the two assemblies in the GAC. The GAC enables side by side assemblies of different version. It will load the proper version of the 3rd party assembly for each module.

Second solution: Ask for the module provider using the old version of the 3rd party library to update his module to use the latest version of the library.

 
New Post
4/24/2009 1:59 AM
 

 3rd option

<configuration><!-- This is the opening tab in (my) web.config -->

<!-- I found that this needs to be at the end of the web.config, right above the closing configuration tag -->
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="bin;bin\HttpModules;bin\Providers;bin\Modules;bin\Support;" />
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Extensions" culture="neutral" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="3.5.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>

 

For more information on using this, google assemblybinding and/or dependentassembly - those should give you enough to get it working

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DLL Hell: Two different versions of the same DLL are requiredDLL Hell: Two different versions of the same DLL are required


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