ICSharpCode.SharpZipLib.Zip.ZipInputStream exists in both

Navigating to the Hosts/Extensions page to install a new module I encountered the error
ICSharpCode.SharpZipLib.Zip.ZipInputStream’ exists in both.

No further actions were possible on the page, The main part of the page was taken up with the error:

Error: Extensions is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: c:\inetpub\wwwroot
dnn7\website\DesktopModules\Admin\AdvancedSettings\LanguagePacks.ascx.cs(87): error CS0433: The type 
'ICSharpCode.SharpZipLib.Zip.ZipInputStream' exists in both 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary 
ASP.NET Files\dnn7\bee480f3\fa259992\assembly\dl3\e540c372\b060736d_d0c1cf01\SharpZipLib.DLL' and 'c:\Windows
\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\dnn7\bee480f3\fa259992\assembly\dl3\bf1f8a0f
\20b0bf04_c6bacf01\ICSharpCode.SharpZipLib.DLL' ---> System.Web.HttpParseException: c:\inetpub\wwwroot\dnn7\website
\DesktopModules\Admin\AdvancedSettings\LanguagePacks.ascx.cs(87): error CS0433: The type 
'ICSharpCode.SharpZipLib.Zip.ZipInputStream' exists in both 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary 
ASP.NET Files\dnn7\bee480f3\fa259992\assembly\dl3\e540c372\b060736d_d0c1cf01\SharpZipLib.DLL' and 'c:\Windows
\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\dnn7\bee480f3\fa259992\assembly\dl3\bf1f8a0f
\20b0bf04_c6bacf01\ICSharpCode.SharpZipLib.DLL' ---> System.Web.HttpCompileException: c:\inetpub\wwwroot\dnn7\website
\DesktopModules\Admin\AdvancedSettings\LanguagePacks.ascx.cs(87): error CS0433: The type 
'ICSharpCode.SharpZipLib.Zip.ZipInputStream' exists in both 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary 
ASP.NET Files\dnn7\bee480f3\fa259992\assembly\dl3\e540c372\b060736d_d0c1cf01\SharpZipLib.DLL' and 'c:\Windows
\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\dnn7\bee480f3\fa259992\assembly\dl3\bf1f8a0f
\20b0bf04_c6bacf01\ICSharpCode.SharpZipLib.DLL' at 

I have found in the past that cleaning the temporary files is a good starting point. It leaves fresh space and a chance to see whether it is a historic left over, or whether there are a couple of duplicates which are being added to the temporary files

You may find that there is a claim on the temporary files. This can be lost be recycling IIS. Or if its a development computer it may be faster/easier to restart.

I found that after removing the temporary files and restarting the website the error once more appeared.

The next place to look is the bin directory of the website. Two files were found here:

  • ICSharpCode.SharpZipLib.dll
  • SharpZipLib.dll

Examining the content of the most recent DNN upgrade file DNN_Platform_07.03.02_Upgrade.zip, I observed that within the bin directory only the file SharpZipLib.dll existed.

Looking at the properties of the file ICSharpCode.SharpZipLib.dll The file description was given as: SharpZipLib.dll for .NET Framework 2.0.

The File description for the file SharpZipLib.dll was simple given as ICSharpCode.SharpZip Library, no mention of the targeted framework.

The .NET Framework in use was 4.

I therefore chose to remove the first of these ICSharpCode.SharpZipLib.dll, copying it to a temporary folder.

Revisiting the host extensions page to install a module there was no error shown.