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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...ICSharpCode.SharpZipLib.DLL and SharpZipLib.DLL conflict in DNN7ICSharpCode.SharpZipLib.DLL and SharpZipLib.DLL conflict in DNN7
Previous
 
Next
New Post
11/4/2016 10:46 AM
 
We have some sites using the ExcelDataReader library to import Excel files, and it has a dependency on ICSharpCode.SharpZipLib. On our DNN 6.2.9 sites, we got the conflict when we first installed it, but I removed the old SharpZipLib.DLL, and everything worked fine. But we recently upgraded a couple to 7.4.2, and when I remove SharpZipLib.DLL, I can't go to Host -> Extensions. There's an exception from DotNetNuke.Services.Installer.Packages.PackageController.ParsePackage: Could not load file or assembly 'SharpZipLib, Version=0.81.0.1407, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Well, of *course* it can't load version 0.81.0.1407 because ICSharpCode.SharpZipLib is version 0.86.0.518. But of course ExcelDataReader won't run with the older version. And apparently they can't run together. Argh! Why won't DNN7 use the new one?
 
New Post
11/7/2016 3:33 PM
 
I realize I should have also included the conflict error:
DotNetNuke.Services.Exceptions.ModuleLoadException: c:\inetpub\wwwroot\DNN 7.4.2\DesktopModules\Admin\AdvancedSettings\LanguagePacks.ascx.cs(87): error CS0433: The type 'ICSharpCode.SharpZipLib.Zip.ZipInputStream' exists in both 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\dnn7\41b01965\f60bcc09\assembly\dl3\6d425c31\7ac2430b_2d39d201\ICSharpCode.SharpZipLib.DLL' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\dnn7\41b01965\f60bcc09\assembly\dl3\29e27b4d\00ca644c_7afbd001\SharpZipLib.DLL'

I'll also note that I did clear the temp folders, but that didn't help; they were just recreated when the site was compiled.

But I believe I found a solution. I put the old SharpZipLib.dll in its own folder inside the bin directory. (So, bin/SharpZipLib/SharpZipLib.dll). Then I added this to web.config, in the configuration/runtime/assemblyBinding section:

      <dependentAssembly xmlns="urn:schemas-microsoft-com:asm.v1">
        <assemblyIdentity name="ICSharpCode.SharpZipLib" />
        <codeBase version="0.81.0.1407" href="SharpZipLib/SharpZipLib.dll" />
      </dependentAssembly>


I left the ICSharpCode.SharpZipLib.dll in the bin directory. Things seem to be working now.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...ICSharpCode.SharpZipLib.DLL and SharpZipLib.DLL conflict in DNN7ICSharpCode.SharpZipLib.DLL and SharpZipLib.DLL conflict in DNN7


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