HighTechTalks DotNet Forums  

Application_Start not firing

VB.net Upgrade microsoft.public.dotnet.languages.vb.upgrade


Discuss Application_Start not firing in the VB.net Upgrade forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Steve Ricketts
 
Posts: n/a

Default Application_Start not firing - 01-05-2009 , 10:28 AM






Sorry for the cross post but I just found this forum and thought it might be
a better place to ask a question than languages.vb. I also have not
received a response there so here goes.

I just converted a vb.net web application from VS2003 to VS2008 and the
Application_Start sub is not being executed. I've put a breakpoint on all
subs in the Global.asax.vb to make sure the Global.asax events are firing
and it breaks on Application_BeginRequest and
Application_AuthenticateRequest but not Application_Start! I've tried
changing Application_Start to Application_OnStart but no difference.

Can someone tell me what's happening?.. very confused!

Thanks,

Steve


Reply With Quote
  #2  
Old   
Steve Ricketts
 
Posts: n/a

Default Resolved: Application_Start not firing - 01-05-2009 , 01:18 PM






Very interesting question...

This is a MS Server 2008 running IIS 7.0. Since IIS 7.0 still has a
surprise for me around every corner, let me answer by perhaps giving more
detail than you need.

The directory where the application in question resides is
d:\data\inetpub\wwwroot\net\lmwapi. I've created an application in IIS for
the lmwapi directory and used the DefaultAppPool. Just for grins, I changed
the DefaultAppPool to Classic .Net AppPool and it fired the
Application_Start sub like it should!!

So, your question put me on the right path. However, I don't really
appreciate the difference in the DefaultAppPool and Classic .Net AppPool.
I'm wondering when I should use one over the other.

Thanks again for your help!

Steve




"Patrice" <http://www.chez.com/scribe/> wrote

Quote:
And you have defined an application root in IIS ?

--
Patrice


"Steve Ricketts" <velocedge (AT) hotmail (DOT) com> a écrit dans le message de groupe
de discussion : OAMf8i1bJHA.4380 (AT) TK2MSFTNGP02 (DOT) phx.gbl...
Yes, the sub is coded as Application_Start(ByVal sender As Object, ByVal
e As EventArgs). It was a working application in VS2003 and it looks
pretty much the same as it did after VS2008 converted it.

I've got the VS2008 on the web server so it's using IIS to debug. I know
the application has not started because I've even stopped the w3wp.exe
process before debugging the application. Typically, the restart is
automatic when I start the debugger but obviously VS2008 is different so
who knows what's typical! ;-)

What seems odd is that it halts at the other breakpoints in
Global.asax.vb or any of the other breakpoints no mater where I put them
except for Application_Start.

sr

"Patrice" <http://www.chez.com/scribe/> wrote in message
news:5468429E-9889-4BDA-B551-09F331ECEC37 (AT) microsoft (DOT) com...
Are you using the correct signature ? It should be Sub
Application_Start(ByVal sender As Object, ByVal e As EventArgs)

Another option would be that the application is already started. Are you
using the web devserver or IIS ? What if you close the web server and
try again ?

--
Patrice


"Steve Ricketts" <velocedge (AT) hotmail (DOT) com> a écrit dans le message de
groupe de discussion : emAl#vnbJHA.1272 (AT) TK2MSFTNGP04 (DOT) phx.gbl...
I just converted a vb.net web application from VS2003 to VS2008 and the
Application_Start sub is not being executed. I've put a breakpoint on
all subs in the Global.asax.vb to make sure the Global.asax events are
firing and it breaks on Application_BeginRequest and
Application_AuthenticateRequest but not Application_Start! I've tried
changing Application_Start to Application_OnStart but no difference.

Can someone tell me what's happening?.. very confused!

Thanks,

Steve




"Steve Ricketts" <velocedge (AT) hotmail (DOT) com> wrote

Quote:
Sorry for the cross post but I just found this forum and thought it might
be a better place to ask a question than languages.vb. I also have not
received a response there so here goes.

I just converted a vb.net web application from VS2003 to VS2008 and the
Application_Start sub is not being executed. I've put a breakpoint on all
subs in the Global.asax.vb to make sure the Global.asax events are firing
and it breaks on Application_BeginRequest and
Application_AuthenticateRequest but not Application_Start! I've tried
changing Application_Start to Application_OnStart but no difference.

Can someone tell me what's happening?.. very confused!

Thanks,

Steve



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.