启用日志记录对于传统的ASP网站 [英] Enable logging for a classic asp site

查看:155
本文介绍了启用日志记录对于传统的ASP网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继承了传统的ASP项目,并已部署了其在IIS 7.5。
我能在某个点来访问网站,但是我得到一个通用的500错误页面。我想知道是怎么回事,所以我觉得最好的是看日志

I inherited a classic ASP project and and have deployed it on a IIS 7.5. I am able to access the site, however at certain point I get a generic 500 error page. I want to know what is going on, so I think the best is to see the logs

  • Have found nothing in c:\WINDOWS\system32\LogFiles\ nor c:\inetpub\logs\
  • Tried to enable logging as here: https://technet.microsoft.com/en-us/library/cc732826(v=ws.10).aspx But I have no Logging icon/button there (see screenshot).
  • Tries custom error 500 page as here: http://www.iis.net/configreference/system.webserver/httperrors/error but there's no "Error Pages" icon (see screenshot)
  • Tried to custom 500 page with web.config as here: http://blogs.iis.net/rickbarber/archive/2013/02/18/working-past-500-internal-server-error.aspx but seems that it gets ignored

有关记录,我与IIS / ASP一个新手,所以这个问题听起来有点傻了..
感谢您的任何建议!

For the record, I am a newbie with IIS/ASP so the question can sound a bit silly.. Thanks for any suggestion!

推荐答案

您应该安装HTTP错误在IIS功能。这足以查看错误信息 - 你将不再需要记录

You should install the HTTP Errors feature in IIS. This is enough to view the error message -- you won't need logging.


  1. 转至程序和功能控制面板。

  2. 选择启用Windows功能打开或关闭

  3. 向下钻取到Internet Information Services>万维网服务>常见HTTP功能,然后选择HTTP错误(当你在它,您可以通过向下钻取到Internet Information Services>万维网服务安装日志记录功能>健康和诊断,然后选择HTTP记录。)

  4. 单击确定进行安装。

一旦安装,配置IIS以显示详细的错误信息:

Once installed, configure IIS to show detailed error messages:


  1. 在IIS设置为你的网站,你现在应该看到一个错误页面的选项。双击它。

  2. 单击编辑功能设置。

  3. 选择要么详细的错误或本地请求的详细错误......这取决于你是做地方发展与否。

  4. 在您的网站的IIS设置,双击ASP的选项。

  5. 展开调试属性,并设置将错误发送到浏览器为真。

您现在应该可以看到详细的错误消息。

You should now see detailed error messages.

IIS日志不会帮助你,因为他们不包括详细的错误信息。

IIS logs won't help you because they do not include the detailed error messages.

这篇关于启用日志记录对于传统的ASP网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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