启用经典asp站点的日志记录 [英] Enable logging for a classic asp site

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

问题描述

我继承了一个经典的ASP项目,并将其部署在IIS 7.5上。
我可以访问该网站,但是在某些时候我得到一个通用的500错误页面。我想知道发生了什么,所以我认为最好的是查看日志







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

解决方案

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


  1. 转到程序和功能控制面板。 li>
  2. 选择打开或关闭Windows功能

  3. 向下浏览Internet信息服务> Word Wide Web Services>常用HTTP功能,然后选择HTTP错误 (当您使用此功能时,您可以通过深入到Internet信息服务> Word Wide Web Services>运行状况和诊断程序并选择HTTP日志记录来安装日志功能。)

  4. 单击确定安装。

安装后,配置IIS显示详细的错误消息:


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

  2. 单击编辑功能设置。

  3. 选择详细错误或本地请求的详细错误...,具体取决于关于您是否正在进行本地开发。

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

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

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



IIS日志不会帮助您,因为它们不包含详细的错误消息。


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

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

解决方案

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

  1. Go to the Programs and Features control panel.
  2. Select "Turn Windows features on or off"
  3. Drill down to Internet Information Services > Word Wide Web Services > Common HTTP Features and select "HTTP Errors" (While you're at it, you can install the logging feature by drilling down to Internet Information Services > Word Wide Web Services > Health and Diagnostics and selecting "HTTP Logging".)
  4. Click OK to install.

Once installed, configure IIS to show detailed error messages:

  1. In the IIS settings for your site you should now see an Error Pages option. Double-click it.
  2. Click Edit Feature Settings.
  3. Select either "Detailed errors" or "Detailed errors for local requests..." depending on whether you are doing local development or not.
  4. In the IIS settings for your site, double-click the ASP option.
  5. Expand Debugging Properties and set "Send Errors To Browser" to true.

You should now see detailed error messages.

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

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

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