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. Firing pf Application event

Firing pf Application event

Scheduled Pinned Locked Moved ASP.NET
13 Posts 3 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.
  • R Offline
    R Offline
    ramdil
    wrote on last edited by
    #1

    Hi all I have some events which i have written in application_start event of web service.Now when i stop the webservice and again restart the application event is not firing..But when i change any dlls associated with it and restart the services, then application_start event fires Can any one points me why the application_start event is not firing..Is there any time out period so that its not firing..I am new webservices Advanced thanks

    Regards DilipRam

    S K 2 Replies Last reply
    0
    • R ramdil

      Hi all I have some events which i have written in application_start event of web service.Now when i stop the webservice and again restart the application event is not firing..But when i change any dlls associated with it and restart the services, then application_start event fires Can any one points me why the application_start event is not firing..Is there any time out period so that its not firing..I am new webservices Advanced thanks

      Regards DilipRam

      S Offline
      S Offline
      szukuro
      wrote on last edited by
      #2

      Are you stopping the web service or just the debugging of it? Because I suspect the latter. Changing dlls toggles recompilation, so then the service is really stopped and restarted.

      R 1 Reply Last reply
      0
      • R ramdil

        Hi all I have some events which i have written in application_start event of web service.Now when i stop the webservice and again restart the application event is not firing..But when i change any dlls associated with it and restart the services, then application_start event fires Can any one points me why the application_start event is not firing..Is there any time out period so that its not firing..I am new webservices Advanced thanks

        Regards DilipRam

        K Offline
        K Offline
        kubben
        wrote on last edited by
        #3

        I am pretty sure that the application start is attached to the app domain which is most likely not unloaded until you stop the app pool the web service is running under. Anyway, that is my guess. Ben

        R 1 Reply Last reply
        0
        • S szukuro

          Are you stopping the web service or just the debugging of it? Because I suspect the latter. Changing dlls toggles recompilation, so then the service is really stopped and restarted.

          R Offline
          R Offline
          ramdil
          wrote on last edited by
          #4

          Hi Thanks for the reply.I am just restarting the IIS but also my application event is not firing...but if change the dll the restart the iis then application start event is fired..Hope i am clear now Thanks in advance

          Regards DilipRam

          1 Reply Last reply
          0
          • K kubben

            I am pretty sure that the application start is attached to the app domain which is most likely not unloaded until you stop the app pool the web service is running under. Anyway, that is my guess. Ben

            R Offline
            R Offline
            ramdil
            wrote on last edited by
            #5

            Thanks for the reply But i got confused with reply..Actually what i have done is that i have restarted IIS and when try to log the events,its application start event is not firing but if change the dlls inside the dlls and then restart the iis then application_start event will fire...why is this happenning From the normal logic view point when ever i restart the IIS that means application_start event should fire..but not happening..why is this

            Regards DilipRam

            K 1 Reply Last reply
            0
            • R ramdil

              Thanks for the reply But i got confused with reply..Actually what i have done is that i have restarted IIS and when try to log the events,its application start event is not firing but if change the dlls inside the dlls and then restart the iis then application_start event will fire...why is this happenning From the normal logic view point when ever i restart the IIS that means application_start event should fire..but not happening..why is this

              Regards DilipRam

              K Offline
              K Offline
              kubben
              wrote on last edited by
              #6

              If you are re-starting IIS that should also re-start the app pool. Perhaps for some reason it doesn't re-start the app pool. When you update the dll the application must restart to re-load the dll. I would try stopping and starting your app pool just to see if that causing the application start event to occur. Ben

              R 1 Reply Last reply
              0
              • K kubben

                If you are re-starting IIS that should also re-start the app pool. Perhaps for some reason it doesn't re-start the app pool. When you update the dll the application must restart to re-load the dll. I would try stopping and starting your app pool just to see if that causing the application start event to occur. Ben

                R Offline
                R Offline
                ramdil
                wrote on last edited by
                #7

                Thanks for the reply. As i dont have enough idea on web services, how should i do checking of application pool.Can you give me some idea how should i test it

                Regards DilipRam

                K 1 Reply Last reply
                0
                • R ramdil

                  Thanks for the reply. As i dont have enough idea on web services, how should i do checking of application pool.Can you give me some idea how should i test it

                  Regards DilipRam

                  K Offline
                  K Offline
                  kubben
                  wrote on last edited by
                  #8

                  I guess first I should ask what version of IIS are you running? Application pools only exist in iis 6.X or higher. If you are running xp pro you will have iis 5.x and won't have application pools. Under IIS 6.x there is an application pool folder. Most likely there is only one app pool called default. All your web services and web sites would be using it. NOTE if you stop the app pool all of the web services and web sites attached to that pool will also stop. So you probably don't want to stop the app pool on a production server in the middle of the day. Ben

                  R 1 Reply Last reply
                  0
                  • K kubben

                    I guess first I should ask what version of IIS are you running? Application pools only exist in iis 6.X or higher. If you are running xp pro you will have iis 5.x and won't have application pools. Under IIS 6.x there is an application pool folder. Most likely there is only one app pool called default. All your web services and web sites would be using it. NOTE if you stop the app pool all of the web services and web sites attached to that pool will also stop. So you probably don't want to stop the app pool on a production server in the middle of the day. Ben

                    R Offline
                    R Offline
                    ramdil
                    wrote on last edited by
                    #9

                    Hi Thanks for the reply.So my problem still continues Is the APPLICATION_EVENT will fire if i restart the IIS server.becoz i have some functions written in the application_event .Then regarding the defualt folder is there any setting i need to do in it

                    Regards DilipRam

                    K 1 Reply Last reply
                    0
                    • R ramdil

                      Hi Thanks for the reply.So my problem still continues Is the APPLICATION_EVENT will fire if i restart the IIS server.becoz i have some functions written in the application_event .Then regarding the defualt folder is there any setting i need to do in it

                      Regards DilipRam

                      K Offline
                      K Offline
                      kubben
                      wrote on last edited by
                      #10

                      Yes the application events should fire when you re-start IIS, since that re-starts the web application, web pool, web site. You do not need to do any special settings to get these events to fire, you just have to handle them in your global.asax file. Ben

                      R 1 Reply Last reply
                      0
                      • K kubben

                        Yes the application events should fire when you re-start IIS, since that re-starts the web application, web pool, web site. You do not need to do any special settings to get these events to fire, you just have to handle them in your global.asax file. Ben

                        R Offline
                        R Offline
                        ramdil
                        wrote on last edited by
                        #11

                        Hi thanks for the reply.Yes normally when we restart the IIS ,application start event will fire..but in my case its not firing and if change the dll then it will fire.and hence it creates me lots of problem.Can you please advise me on this...

                        Regards DilipRam

                        K 1 Reply Last reply
                        0
                        • R ramdil

                          Hi thanks for the reply.Yes normally when we restart the IIS ,application start event will fire..but in my case its not firing and if change the dll then it will fire.and hence it creates me lots of problem.Can you please advise me on this...

                          Regards DilipRam

                          K Offline
                          K Offline
                          kubben
                          wrote on last edited by
                          #12

                          Without seeing your servers and your specific setup I don't think I can be any more help then I have already tried with my other posts. Without seeing how your systems are setup I don't think I can help. Ben

                          R 1 Reply Last reply
                          0
                          • K kubben

                            Without seeing your servers and your specific setup I don't think I can be any more help then I have already tried with my other posts. Without seeing how your systems are setup I don't think I can help. Ben

                            R Offline
                            R Offline
                            ramdil
                            wrote on last edited by
                            #13

                            Thanks Ben for your efforts for replying me I will search it out.

                            Regards DilipRam

                            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