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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...3rd party DLL issue and Christoc's VS 2012 Template3rd party DLL issue and Christoc's VS 2012 Template
Previous
 
Next
New Post
3/29/2013 9:52 PM
 
Hi all,

I built a custom module to parse an Excel spreadsheet using a 3rd party DLL that I added under references within my project. It works great so I packaged it up using Chris' 2012 VS template.

After I installed it on a test DNN site I got an error that suggested the DLL's weren't present so I copied them to the DNN bin folder and the error dissapeared but now I have a new error when I go to file manager:

"Error: File Manager is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: d:\Websites\DNN7TestInstall\DesktopModules\Admin\FileManager\FileManager.ascx.cs(777): error CS0433: The type 'ICSharpCode.SharpZipLib.Zip.ZipEntry' exists in both 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\4a47d2ce\741952d6\assembly\dl3\56eca313\00ac241d_86fdcd01\SharpZipLib.DLL' and 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\4a47d2ce\741952d6\assembly\dl3\3a3423d9\c669538c_172cce01\ICSharpCode.SharpZipLib.DLL'"


A similar error appears on the extensions page as well and deleting the 2 DLL's I manually copied to the DNN bin folder makes the error go away. Unfortunately the error returns on the page with my custom module.

What am I doing wrong? Shouldn't adding the DLL's as references to my project include them when I build the package?

Thanks,
Mark
 
New Post
3/30/2013 12:09 AM
 

You are getting a reference mismatch between what are possibly different files with the same version of the same dll.

Basically the internal signature for the .dll looks the same to the CLR - but it appears to have different file names.

 
New Post
3/30/2013 1:54 PM
 
Wes,

I see that now. There are 2 files with similar names:

ICSharpCode.SharpZipLib.dll

SharpZipLib.dll

The host extensions upload piece needs the latter but I need the former to parse my Excel file.

What can I do to resolve this?

Thanks,
Mark
 
New Post
3/30/2013 2:08 PM
 

Is it possible to rename the dll and then reference the new, renamed DLL in your VS 2012 project? Then compile it and if everything goes OK deploy that (with the renamed DLL)?


Regards,
Christopher Koeber
 
New Post
3/30/2013 4:52 PM
 
I don't think it's possible because one DLL seems to pull in the other one (ICSharpCode.SharpZipLib.dll). I know this because I can remove that DLL, recompile my module and it comes back in to the DNN bin folder.

At this point I don't think I can use the DLL I found on codeplex to read Excel files. That's OK as long as I can find something else and I'm open to suggestions if anyone has any.

Thanks,
Mark
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...3rd party DLL issue and Christoc's VS 2012 Template3rd party DLL issue and Christoc's VS 2012 Template


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