如何找到我们的asp.net网络应用程序已关闭 [英] How to find our asp.net web app is down

查看:91
本文介绍了如何找到我们的asp.net网络应用程序已关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



当我的asp.net网络应用程序关闭时,我需要重定向到错误页面。请帮助我了解如何跟踪我的网站是否已关闭。

Hi All,

I need to redirect to error page when my asp.net web app is down. Please help me for how to track my site is down or not.

推荐答案

当您的网站关闭时 - 它已关闭。因此,您无法使用代码作为您网站的一部分来处理任何事情。

如果幸运的话,IIS仍在运行(只有您的网站已关闭),因此您可以使用它具有的功能来显示自定义错误页面。 ..

Google forIIS中的自定义错误页面并阅读...
When your site is down - it's down. So you can not handle anything with code that part of your site.
If you are lucky IIS still running (only your site is down) so you can use the feature it has to display custom error pages...
Google for 'custom error page in IIS' and read...


这篇关于如何找到我们的asp.net网络应用程序已关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆