How to start Web Application automatically afrer IIS is started?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nttuanit
    New Member
    • Jan 2008
    • 7

    How to start Web Application automatically afrer IIS is started?

    Hi All,

    I have a Web App, I want to start Main page automatically after IIS is started without any request from browser.

    OR run one Script in Global.asax after IIS started.

    I understand that the Application_Sta rt on Global.asax is fired only have any request from browser on my application.

    Now I want to start App auto after IIS started.

    Please help me, thanks a lot.
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Still unclear what you are trying to do, not sure that your handle on application_sta rt event is correct.

    Comment

    • nttuanit
      New Member
      • Jan 2008
      • 7

      #3
      I mean that, I have "function A" in global.asax file, I want IIS call Function A when I stop and re-start IIS.

      That means IIS will call any Function in my app without everybody request my app from Browser.

      Please help me in urgent.

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        Bewilded as I am by the design, I am not sure the application events will fire as you expect. I believe that these events are influenced by the framework. So that your very first user triggers the start event and restarting/power outage of the server triggers the end event. So I would expect stopping and starting iis to have no influence on these events.

        Comment

        • Ahmed123456789
          New Member
          • Aug 2008
          • 1

          #5
          i have a response for iis on windows 2003


          in iis Management console

          créate a new application pool
          configure this pool so iis do not recycle de proccess evy xxx minutes so all application in this pool donot stop .


          go to your application and configure it thas it will run in this application pool
          [IMG]application config[/IMG]

          to start your application creeate a register entry
          in Run key value of entry explorer http://localhost/myapp/defaultpage.aspx
          your application start when windows start
          Attached Files
          Last edited by Ahmed123456789; Aug 27 '08, 08:59 AM. Reason: add images

          Comment

          • sourovchatterjee
            New Member
            • Jan 2010
            • 1

            #6
            Auto Start Web app post IIS reset

            Is there a way to fire the global.asax of any web app after IIS is reset for any reason what-so-ever. Entering a registry key would not resolve the entire issue as IIS can be reset without rebooting a machine. The fix has to be either at IIS property level /application pool level but the solution suggested does not fire application_ons tart after IIS reset.

            I created an separate application pool for the web app and unchecked the recycling but still no luck.

            I also created an scheduled task to fire the default page of the web site to mimic an user request from browser on my application, which works but that defeats the purpose of the web app as I used that as a substitute for Scheduled tasks which are mostly unmanaged (.vbs/.bat) or carry lot of overhead for managed services.

            Please can you clarify the app pool solution further?

            Thanks,

            SC

            Comment

            Working...