Application_Start not firing

S

Steve Ricketts

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
 
S

Steve Ricketts

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
 
S

Steve Ricketts

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top