Webservice Application Stops Indefinately
-
Hi all, I have been facing a problem for a long time and i am not able to get any flick. The scenario: I am running a webservice for entering the data into the my database on a regular interval from a different source. The solution: I am using threading model for the same. The threads (4 in no) keeps their job going seperately and then each one of them sleep inside a infinite loop for a predefined period to enter the data again. Even if there is any error i catch it and then start again, like i said the things in seperate threads are in infinite loop. Consequence: The service works perfectly fine but then the application stops. I have entered a code at the application stop event in Global.asax which i receive at any time. Sometimes the service runs through hours while at other times it stops at any time like 10 mins, 5 mins.... Problem: Now i am not able find any appropriate cause of the problem. Why the application is behaving this was why is it stoping when i want that to run for the lifetime? Any help ....!!!
Do not forget to tune the Performance :-) Sudhir Yadav