Determining programmatically whether the ASP.NET/C# website is being deleted

I have an ASP.NET/C# web application hosted in IIS6. My requirement is to send mail whenever the Site is disconnected without using a third-party tool. How can I do this work programmatically (of course using C #)?

Thanks in advance!!!!!

+3
source share
2 answers

You need a PC that is as independent as possible from WebServer. Ideal on the other side of the world.

Then run a small timer program and check every X minutes. Make a simple capture using WebClient. If this fails, send a message.

.

+4

"". , - . , , . , -, - , HTTP, , , , , HTML .

, , , IIS ..

, , , .

+1

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


All Articles