0

I'm trying to setup a classic ASP page to log errors by redirecting the errors to error page that has logging enabled. When the site was migrated from IIS6 to IIS7 the logging stopped working as the details of the errors are not included in the redirect.

I have been able to fix this issues somewhat by going to the site in IIS Manager, going to that sites Error Pages, Clicking Edit Feature Settings, and Changing that option to Detailed errors for local requests, setting my default path to the error page, and changing the path type to execute URL. In order to do this I had to edit the apphost.config and remove some of the locks that are in place there.

Error Page Settings

Now when I go to other sites on my IIS the same default page path is set on those too. can someone please point me to some documentation or tell me how to make this change only for this particular site?

4

2 回答 2

0

我的问题最终是我正在编辑我的 applicationHost.config 这似乎是一个合理的解决方案,但可惜不是。更改该 XML 似乎对 IIS 管理器允许我执行的操作没有影响。我终于进入了 IIS 根目录的配置编辑器并在那里编辑了相同的设置,这实际上产生了一些效果。那时我所要做的就是删除默认路径上的属性锁定,然后我就可以编辑我的网站了。我不知道为什么更改应用程序主机没有任何效果。我会做出改变,当我最终查看 IIS 管理器中的设置时,我所做的一切都没有改变......仅供参考,这是 Win7 上的 IIS 7.5

希望这对其他人有帮助。

在此处输入图像描述

于 2013-02-05T15:28:25.150 回答
0

要为 IIS 中部署的每个网站创建错误页面,您需要单击单个网站,然后在右侧单击错误页面并选择页面。 在此处输入图像描述

于 2013-02-04T23:41:42.793 回答