Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
I have asp.net application. I am forcibly end this application and on the time of that i want to update my view page count value in database. I am forcibly stopping my application that time Application_End() not firing. when i stop process normally then Application_End() event fired. but my requirement is that, data should be update in both cases forcibly or gracefully stop application. Suggest me for better solution or what other event should i use.
Posted
Comments
Suvendu Shekhar Giri 3-Dec-15 1:10am    
Isn't this a repost?
What happened to your last question?
On aps.net application end page view count data in not updating[^]
Member 10711621 3-Dec-15 1:21am    
solutions not got for it right now.
Suvendu Shekhar Giri 3-Dec-15 1:35am    
Then you should update that question if you want change something in the question or add comment to that question and wait for somebody to answer.
Member 10711621 3-Dec-15 1:40am    
I'll take care next time.
Nathan Minier 3-Dec-15 7:29am    
You got your answer the last time you asked this. FrancoisViljoen was 100% correct in his comment.

1 solution

As you've already been told, when you forcibly shut it down the code will not run, you have killed it essentially. So the shut_down code will not execute. Moral of the story is don't kill the process.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900