IIS7显示ASP错误(An error occurred on the...)
的有关信息介绍如下:开发网页程式时,有时最让人苦恼的是,程式出了问题却不知道到底错在哪裡?如果您在 IIS7 上开发 ASP 时出了问题,预设会显示的错误信息是:
An error occurred on the server when processing the URL. Please contact the system administrator.If you are the system administrator please click here to find out more about this error.
… 很好,我要去问谁呢?
会出现这个错误讯息的原因,是在 IIS 7 中 ASP 的侦错讯息是预设关闭的!以下我们就要说明如何在 IIS7 中将排错信息打开,提升我们开发时排错的效率。
请先进入 IIS 管理员。选择您要设定的站台,接著选按中间 IIS > ASP。
请修改 排错内容 > 将错误传送到浏览器 为 「True」,再按右方的 套用。
如此一来即可在浏览 ASP 页面显示详细的错误信息。