Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  how to hook dnn startup...
Previous Previous
 
Next Next
New Post 9/28/2007 12:10 PM
User is offline robhedin
2 posts
10th Ranked


how to hook dnn startup... 

We've got an internal application that is using DNN as the framework; all of our "application code" is implemented as dnn modules andd things generally work as expected with  only a couple of warts here and there.

We do have an issue, however. We've got some code that *must* execute when the application comes up. This does a number of things from initiallizing some data caches and more importantly establishing a connection to one or more servers (in the simplist case we need to be able to notify another system that we're alive). Ideally this would also be hooked on shutdown as well.

So far, we've been modifying the application_start/_end functions in global.asax.vb, but since this is the only modification we've got to make to the DNN code, we would greatly prefer not to do this but use a different mechanism.

So the question becomes, "how can I fire code when DNN starts up WITHOUT waiting for a user to do something?"

Any ideas and/or pointers would be most appreciated!

Thanks!

rob.

 
New Post 9/30/2007 8:42 PM
User is offline Angel Vega
51 posts
www.micos.com.mx
10th Ranked


Re: how to hook dnn startup... 

MMmm, maybe it's a dumb sugestion but, why don't you create a skin object that checks the state of your variables and the other server awareness of your app?

Your app doesn't do anything unless a user requests a page anyway, right?

Greetings

 
New Post 10/2/2007 7:26 AM
User is offline robhedin
2 posts
10th Ranked


Re: how to hook dnn startup... 

Actually, that's the problem-- I *have* to do things regardless of whether or not a user requests a page.

One example of a case: when the application starts I *have* to send a notification to an enterprise logging facility stating this; the same thing is done on page request, and ideally I'd do the same on the hour or something; but I have to make an entry that we're up. I also need to register with another application (and preferably de-register on exit), as well as several other items.

Currently I'm physically changing application_start, but would prefer  a better mechanism that doesn't require me to  keep changing the DNN source with every update.

Thanks!

rob.

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  how to hook dnn startup...
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DotNetNuke Hosting Provider UK
UK leading DotNetNuke Hosting provider. Owned and operated by a Microsoft Gold Certified Partner.
www.DNN-Portals.co.uk
Alliance Systems & Programming Inc
Alliance is not just our name... it's how we do business. We partner with our clients, learning their business processes and standards and then applying our expertise to help them improve their workflow and profitability.
www.Alliancesys.com
Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP