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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...UpgradeModule events not added to EventQueue (but manifest seems to be correct)UpgradeModule events not added to EventQueue (but manifest seems to be correct)
Previous
 
Next
New Post
10/5/2011 6:06 PM
 
I want to trigger the UpgradeModule method in my controller class when a module upgrade is performed (this is DNN 5.62 by the way).

As far as I can see I have set up everything perfectly (as per Peter Donker's post:  DNN 5 installer does IUpgradeable differently), but no record is being added to the EventQueue table (and my method is not being called, no doubt because of this).

I have checked (and double checked!) the following:
  • the business controller class implements IUpgradable
  • the module definition has Upgradeable as a supported feature (SupportedFeatures = 4 in table)
  • the business controller class plus assembly name is registered in the module definition
  • the EventMessage section of the manifest file is set up per the blog post above
What could be going wrong? What else can I check?

FYI - the only "unusual" thing about my manifest file is that there are multiple packages within the one file (several modules, plus a skin object & a library). The package I have attached the EventMessage section to does not have a Script component (the SQL upgrade scripts are attached to another module package). The business controller class is also in an assembly that is part of another module.
 
New Post
10/5/2011 10:28 PM
 
that all sounds correct, im afraid all i can suggest is that you download the source package and try to debug through it.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/6/2011 6:59 AM
 
Figured it out! Cathal - could you look over this to see if what I am saying is valid:

First off - I lied .... I didn't follow Peter's blog post exactly. The correct position for the < eventMessage />  node is after < desktopModule />  - I had it inside < desktopModule />. This is what the Wiki article Module Component implies,which I had also been following.

Cathal - can I correct the article, or is it maybe accurate for DNN 6 and not for DNN 5?

After correcting the position of the < eventMessage /> node, now UpgradeModule events were being added to the EventQueue table. But there was one further problem .... the event hook was set to Application_Start_FirstRequest, and DNN was not picking up these events and processing them. Why? Some digging in the source code revealed that these event types are picked up by the UrlRewrite module, and I had swapped out the native UrlRewrite module for a 3rd party module that obviously did not implement this.

Another Cathal question - could this event type possibly be processed by the core and not the UrlRewrite module, or could the event type be changed to Application_Start for module upgrades (I'll put the request in Gemini if it is valid)?
 
New Post
10/6/2011 5:40 PM
 
Hello,
glad you sorted it out - the wiki article also does appear to be wrong (ive updated it) - BTW the wiki is a community resource so feel free to edit/add new pages at any time.

As to the event hook, I think that is incorrect as the friendlyurl is a provider so there is no guarantee that it will always be there -instead the code should be in the core (its probably just there from the days before the code was extracted out into a provider)-please log that as a bug at support.dotnetnuke.com

Thanks,
Cathal

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...UpgradeModule events not added to EventQueue (but manifest seems to be correct)UpgradeModule events not added to EventQueue (but manifest seems to be correct)


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