Make sure dot.net is always running.

I created a very small web monitoring application that periodically checks other sites to see if they are alive. If they are not there, an email has been sent to me so that I can respond (for example, if the site responds 503)

However, my problem is that the monitor web application is disconnected when AppPool is processing, and it never started again because it does not receive requests.

Is there a way to make sure it starts again after rebooting, rebooting the server or similar?

It currently runs the background thread in global.asax Application_Start, and then the thread is responsible for saving the monitor web application by polling it, as well as other sites.

That way, he will receive an HTTP request so often. However, this obviously only works to keep it operational when it really started.

I read a little about the IIS Warm Up modules, however the site is hosted on a server that I did not influence, so this is not possible.

The site was built using ASP.Net 4.0 and runs on the IIS 7.5 server.

Hope you have an idea :-)

+4
source share
4 answers

I use uptime robot so that my application is always deployed. The beauty of this system is that it requests page titles on your site and receives status codes such as "200-ok", "404-not found", etc. Every 5 minutes. This means that the inaction robot does not add noise to Google Analytics, since the page is never requested.

It seems to work like a dream for me and its FREE for 50 sites!

+2
source

You must implement this as a Windows application or a console application running on a scheduled task. A website is really not a suitable type of application.

+2
source

I agree with tvanfosson, but if you need it right now, you can still configure the application pool so you don’t recycle it.

http://technet.microsoft.com/en-us/library/cc753179(WS.10).aspx

+1
source

It is better to do this as a Windows service or as a planned console application. If you want to save it as a web application, you can send a third-party message to your application for it to work. My current client does this from http://www.pingdom.com/ , but there are other alternatives.

+1
source

Source: https://habr.com/ru/post/1332666/


All Articles