asp.net如何判断“找不到服务器”

来源:百度知道 编辑:UC知道 时间:2024/06/06 23:30:43
asp.net代码:当网页出现“找不到服务器”就重新刷新该网页!

Server Error in '/ADLoginTest' Application.
--------------------------------------------------------------------------------

The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /ADLoginTest/default.aspx

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

不看到这些的话就是找不到服务器的。

没有看到代码,很难确定具体问题,但如果你的在localhost,先试试localhost以确认iis是正常运行,如果IIS正常,则进一步检查你的站点