Why are the Global.asax events not firing in the ASP .NET website

asp.net

I've been developing an ASP .NET 3.5 web application against Cassini, the built-in web development server, rather than against IIS.

In my Global.asax file, in the Application_Start event handler, I have some code which logs the fact that the website has started up. This all works fine with Cassini.

Since deploying the site to a virtual directory on a test server using IIS6, I am finding there are no log entries being written, and so I'm concluding that the Application_Start handler is not firing.

I then tried removing the virtual directory and running the site directly out of the root of the website on the test server, but it didn't make any difference – still no log entry for application start.

I know these events should fire irrespective of my deployment environment, has anyone got any ideas what is going wrong here?

Best Answer

If you make a request to your app does the "Application_Start" fire then? I don't believe it will be started until the first request is made.