« Previous Next »

Thread: ASP.NET 3.5 HttpApplication does not have OnStart Event

Last post 12-23-2008 9:02 PM by thomad. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 12-23-2008, 6:40 PM

    • dean4if
    • Not Ranked
    • Joined on 06-29-2002, 12:11 PM
    • Tracy, California
    • Posts 2

    ASP.NET 3.5 HttpApplication does not have OnStart Event

    I have IIS 7 installed on a Windows 2008 Server.  Using Visual Studio 2008 and ASP.NET 3.5, the HttpApplication object does not expose the OnStart Event (the Help for this object does not list OnStart as an Event and the IDE does not show the Event.

    I have a web running IIS 7 on Vista and the OnStart Event will run when the application is first started, but with the same setup on my Windows 2008 web, the Event is not running when the application is first started.

    Does anyone have any suggestions about how I can configure my Windows 2008 web running IIS 7 to get the OnStart Event to run?

    Thanks, Dean

  • 12-23-2008, 9:02 PM In reply to

    • thomad
    • Top 25 Contributor
    • Joined on 08-20-2002, 11:28 AM
    • Redmond
    • Posts 503

    Re: ASP.NET 3.5 HttpApplication does not have OnStart Event

     

    Global.asax provides a way to hook into the Start event. Open the context menu of the project in VS, click "Add"-"New Item" and select "Global Application Class".

     Hope this helps.

     

    Thomas Deml
    Program Manager
    Internet Information Services
    Microsoft Corp.
Page 1 of 1 (2 items)
Microsoft Communities