Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Application_Start event in Global.asax won't fire

Application_Start event in Global.asax won't fire

Scheduled Pinned Locked Moved ASP.NET
sysadmin
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Online
    J Online
    Jorgen Andersson
    wrote on last edited by
    #1

    It works properly on the developer machine(s) but not on the production server, a server 2003. It fires if I restart the worker process manually. But not for any automatic restarts. I need some ideas for where to start looking.

    A 1 Reply Last reply
    0
    • J Jorgen Andersson

      It works properly on the developer machine(s) but not on the production server, a server 2003. It fires if I restart the worker process manually. But not for any automatic restarts. I need some ideas for where to start looking.

      A Offline
      A Offline
      AlexeiXX3
      wrote on last edited by
      #2

      Sometimes the app wont shut down for a long time after not receiving any requests (or closing any open browser, which has nothing to do), and when you are developing the app, when you run it, it sometimes restatrs the app automatially So, how can you be sure that the app is starting and the event not firing??

      Alexei Rodriguez

      J 1 Reply Last reply
      0
      • A AlexeiXX3

        Sometimes the app wont shut down for a long time after not receiving any requests (or closing any open browser, which has nothing to do), and when you are developing the app, when you run it, it sometimes restatrs the app automatially So, how can you be sure that the app is starting and the event not firing??

        Alexei Rodriguez

        J Online
        J Online
        Jorgen Andersson
        wrote on last edited by
        #3

        We have an application object that keeps track on certain common dynamic settings for the sessions that needs to be initialized at application start. We have also tested with adding a simple logging procedure to the Application_Start event. It works on the developer machine but not on the server.

        A 1 Reply Last reply
        0
        • J Jorgen Andersson

          We have an application object that keeps track on certain common dynamic settings for the sessions that needs to be initialized at application start. We have also tested with adding a simple logging procedure to the Application_Start event. It works on the developer machine but not on the server.

          A Offline
          A Offline
          AlexeiXX3
          wrote on last edited by
          #4

          Jörgen Andersson wrote:

          We have also tested with adding a simple logging procedure to the Application_Start event.

          So, this logging procedure... will it run at least the first time (just after deploying) you request a web form in the application??

          Alexei Rodriguez

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups