启用日志记录对于传统的ASP网站 [英] Enable logging for a classic asp site
问题描述
我继承了传统的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
- 没有发现任何在C:\\ WINDOWS \\ SYSTEM32 \\ LogFiles文件\\也不是C:\\的Inetpub \\日志\\
- 试过这里启用日志记录:的https: //technet.microsoft.com/en-us/library/cc732826(v=ws.10).aspx 但我没有记录图标/按钮那里(见截图)。
- 这里尝试自定义错误页500: HTTP://www.iis。净/ configreference / system.webserver / httperrors /错误但没有错误页面图标(见截图)
- 试过用的web.config这里定制的500页:<一href=\"http://blogs.iis.net/rickbarber/archive/2013/02/18/working-past-500-internal-server-error.aspx\" rel=\"nofollow\">http://blogs.iis.net/rickbarber/archive/2013/02/18/working-past-500-internal-server-error.aspx但目前看来,它被忽略
- 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.
- 转至程序和功能控制面板。
- 选择启用Windows功能打开或关闭
- 向下钻取到Internet Information Services>万维网服务>常见HTTP功能,然后选择HTTP错误(当你在它,您可以通过向下钻取到Internet Information Services>万维网服务安装日志记录功能>健康和诊断,然后选择HTTP记录。)
- 单击确定进行安装。
一旦安装,配置IIS以显示详细的错误信息:
Once installed, configure IIS to show detailed error messages:
- 在IIS设置为你的网站,你现在应该看到一个错误页面的选项。双击它。
- 单击编辑功能设置。
- 选择要么详细的错误或本地请求的详细错误......这取决于你是做地方发展与否。
- 在您的网站的IIS设置,双击ASP的选项。
- 展开调试属性,并设置将错误发送到浏览器为真。
您现在应该可以看到详细的错误消息。
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屋!