【发布时间】:2011-12-17 03:17:38
【问题描述】:
我有如下配置文件sn -p
<configSections>
<sectionGroup name="elmah">
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
</sectionGroup>
</configSections>
<mailSettings>
<smtp deliveryMethod="Network">
<network host="smtp.gmail.com"
port="587"
userName="example@gmail.com"
password="password" />
</smtp>
</mailSettings>
</system.net>
<elmah>
<errorMail
from="example1@gmail.com"
to="example2@gmail.com"
sync="true"
smtpPort="0"
useSsl="true"
/>
</elmah>
我已经用适当的东西替换了 example1 等。现在,我有以下问题: - 1)为什么它不工作? 2)我如何调试它? 3)我需要一种永久的方式来调试 web.config 或至少一些代码,当配置文件出现问题时会发出一些错误消息。
【问题讨论】: