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