【发布时间】:2013-10-23 21:20:33
【问题描述】:
我的一个网页出现运行时错误。
错误告诉我在 web.config 文件中设置customErrors mode="Off",这没有区别。 (我假设服务器配置为不抛出特定错误)
我的配置文件如下所示。
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
<customErrors mode="Off"/>
</system.web>
</configuration>
它在本地运行良好。有没有办法让我准确查看导致错误的原因?
【问题讨论】:
-
不,该用户通过更改 customerError="Off" 得到了他的特定错误,这对我来说不会发生。我经常遇到同样的模棱两可的错误。
-
检查虚拟目录是否已创建,并查看 IIS 日志? techslate.net/…