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.0Warning: Create Module Package + Dev. Framework Upgrade = Disaster!Warning: Create Module Package + Dev. Framework Upgrade = Disaster!
Previous
 
Next
New Post
3/12/2008 7:37 PM
 

I had been working in my development install (DNN 4.8.0) on a major upgrade to a previously released module for several weeks, creating module install packages periodically with Host->Module Definitions -> Create Module Package for testing on a separate install. Because I was having a bit of a problem with targeting .Net 3.5, I decided to upgrade the development install to DNN 4.8.1.  As it was ONLY a minor upgrade to my development install I stupidly did not bother to do a full backup - only database (thankfully) and web.config.  All went well with the upgrade and I went back to work on coding the module upgrade.  I was surprised to notice that several new properties I had added to a class earlier today were no longer there. Further analysis showed that ALL code changes made the past few weeks were gone and that all files in App_Code and in my modules folder under DesktopModules (some 60 files in all) showed a creation date/time matching that of the framework upgrade I had just done.

Here's what happened: In creating install packages periodically using Create Module Package (which places the install zip files in the /Install/Modules/ folder), I had forgotten that one of the earliest install packages was still setting in the module install folder. The framework upgrade triggered the install of this old version replacing ALL of the module files with the old files.

Here's the warning:

1. BACKUP-BACKUP-BACKUP even for what would appear to be minor upgrades.
2. Do not leave module install packages (.zip extension) in the /Install/Modules/ folder. Move them elsewhere as soon as created.  Create Module Package really needs to allow the host to specify a different folder for the destination of the created package.
3. Get into a practice of incrementing module version numbers will still in development.  Because I don't normally increment the version number until the final release, the installer saw both the current module version number and that of the old package as being the same and apparently treated it as a reinstall of the same version allowing the files to be overwritten.
4. BACKUP-BACKUP-BACKUP

Now, to get back to coding . . . while I can recall even half of the changes I had made.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
3/12/2008 8:26 PM
 

a few more pointers:

  • you can actually create your install package somewhere else (instead of in the module install directory). Just enter a relative path in front of the proposed filename, eg: ..\..\..\Installation\modulename.xx_xx_xx.install.zip. This will put the package in the directory "Installation" which sits on the same level as your dnn application root dir. Make sure that directory exists tough, and also make sure that the asp.net worker process identity as sufficient rights on that directory.
  • you should really consider some kind of source control. SVN is free, and will integrate with visual studio

Also: what is good to remember: even if the module version which you are installer is OLDER than the installed version, files will still be unpacked in the proper locations... so the old version WILL overwrite the newer version... except: the sql files will not be rolled back.

 


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
3/13/2008 12:25 AM
 

Sorry to hear about that Bill.

Source control really is the answer and it helps when you want to look at a previous version of code. If you are making an Open Source module http://CodePlex.com is highly recommended.



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
3/13/2008 9:38 AM
 

As mentioned source control is a really good idea.  I personally use SourceGear Vault for my stuff, it is free for a single user...


-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
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Warning: Create Module Package + Dev. Framework Upgrade = Disaster!Warning: Create Module Package + Dev. Framework Upgrade = Disaster!


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