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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Application_Start event in Global.asax.vb is not being trapped/raisedApplication_Start event in Global.asax.vb is not being trapped/raised
Previous
 
Next
New Post
9/29/2010 4:37 PM
 

I have a new portal module project in which I need to run some processes on the “application start event”.

I have spent 3  days trying different tricks and workarounds to trapping the application start event from a portal module project to no avail. I have just discovered that my workarounds and tests were flawed because the “Application_Start” event in the DNN core project file  Global.asax.vb does not appear to be trapped/raised.

This is happening in both  my  DNN5.5.0 and 5.5.1 installs

I tried running my DNN5.5.0. in .NET 4.0 framework  (Integrated Pipeline Mode) and DNN5.5.1 in classic Pipeline .Net 2.0 mode and when running in debug (VS2010 IIS7) in either site, my breakpoint on the Application_Start event in the Global.asax.vb is never triggered.

Am I doing something wrong. Is anyone else seeing this behavior.

Many thanks,  Les

 
New Post
9/29/2010 5:08 PM
 
Are you trying to put this into a global.asax.vb file in your module project? or in DNN itself?

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
9/29/2010 6:44 PM
 
I am trying to put these processes I only want run on "application_start" into my own project. I am not putting them into the global.asax.vb (core project) because it would require a circular project reference.

So I have two problems:
1) It appears the appllication_start event in the global.asax (DNN Core code) is not being fired which I assume is a problem as there are important processing related to loding componentfactorys attached to it.

2) Once I have fixed problem #1,  I need trap the application start event in my own WAP project to perform my own processing related to my custom portal module project/application.
  tried the suggestion in post http://www.dotnetnuke.com/Community/B... 
However, in IIS7/.Net 4.0 apparently multiple instances of a HttpModule can be triggered so relying on the init event within the htpmodule only being run once for the life of the application is no longer the case.  I tried some tricks related to "inherits" the core global.asax, but if the event it not being trapped in the DNN core project then my inherits workaround is also not going to work.
 
New Post
10/1/2010 1:01 AM
 
Saw Les Larry's post and ran a debug on my DNN5.5.0 and new DNN 5.5.1 install and also found that Application_Start does not appear to be trapped/raised.  I am getting ready to deploy a new website based on DNN 5.5.1 and I am wondering if the Application_Start sub is obsolete and just not marked or if there is indeed a problem that I need to address before launch of the new website.  Please respond ASAP.  Thanks.
 
New Post
10/1/2010 1:39 PM
 
It turns out that the Application_Start event is being run, but something about the VS2010 debugger is preventing our ability to debug it with a breakpoint.
I tried commenting out the whole applciation_start event and the site would not run.
The workaroung to trapping the event for debugging only was to add:
        System.Diagnostics.Debugger.Break()
into the Application_Start sub

Now I still have to figure out a way for my own project to run some stuff on the application_start event.
Les
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Application_Start event in Global.asax.vb is not being trapped/raisedApplication_Start event in Global.asax.vb is not being trapped/raised


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