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.0Problem with Module UploaderProblem with Module Uploader
Previous
 
Next
New Post
6/15/2008 12:08 PM
 

I believe, I have found a problem (a bug) with Module Uploading process. I am discussing it here, just in case this has already been submitted, and I could not find it on the Bug Submission page.

 Suppose, I have two files with the same name, a1.ascx in my module. The difference is that  they are in different folders, like.

/MyModule/a1.ascx

/MyModule/folder/a1.ascx

Then, after the manifest is parsed, and the module is installed, DNN creates this file in only that place which appears later in the manifest (/MyModule/folder/a1.ascx in this case). The other file is simply not created, and obviously causes Run-time errors in the module.

I believe, that when a manifest is parsed, the installer caches the FileNames with their destination directories in some sort of a HashTable (or Dictionary), with the FileName being the key into the dictionary, thus leading the later definition to overwrite the earlier file definition (as the filenames are same). As a result, only the last file with that name is created.

Has somebody faced similar situation?? I have retried & confirmed that this problem exists!!!

 
New Post
6/16/2008 11:04 AM
 

Yes, I have noticed this behavior, however, since you cannot have two different files, I have always just created my modules in a way that didn't have any duplicate content.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
6/16/2008 1:14 PM
 

I faced this situation while creating a custom Member Management module.

It had 2 controls named User.ascx, in different directories, each presenting a different aspect of a Registered User. There I faced this problem first time. Had no option, but to rename one of the controls.

At a second time, in the same module, I had 2 images named default.jpg, again in different folders, each of which was to be presented as the default image in different situations.

Clearly, you cannot always assume, that a module cannot have 2 files with same name, and same name does not necessarily mean duplicate content!!!

 
New Post
6/17/2008 11:24 AM
 

I personally would disagree with that statement, if inside my module I had two controls, files, images, etc with the same name I would find it confusing and hard to manage.  if they are different aspects of something I would name them differently to keep them unique, not only for the DNN module packaging process but to keep my code easy to maintain.  At least that is my opinion.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
6/17/2008 1:12 PM
 

DNN 5 will come with a new installer and new packaging format, that AFAIK will no longer have this limitation.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problem with Module UploaderProblem with Module Uploader


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