您如何配置Elmah鸣叫错误消息?

| 我读到Elmah可以发布错误消息,因此我尝试对其进行设置,但无法使其正常工作。我可以将错误保存到数据库中并通过电子邮件将错误发​​送给我,但该推文似乎无效。 这是我的配置:
<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\"/>
        <section name=\"errorTweet\" requirePermission=\"false\" type=\"Elmah.ErrorTweetSectionHandler, Elmah\"/>
    </sectionGroup>
</configSections>

<elmah>
    <security allowRemoteAccess=\"1\" />
    <errorLog type=\"Elmah.SqlServerCompactErrorLog, Elmah\" connectionStringName=\"LoggingDB\" />
    <errorTweet 
        userName=\"twitter_username\" 
        password=\"twitter_password\" statusFormat=\"{Message}\" />
</elmah>

<system.webServer>
    <modules>
        <add name=\"ErrorLog\" type=\"Elmah.ErrorLogModule, Elmah\" preCondition=\"managedHandler\" />
        <add name=\"ErrorFilter\" type=\"Elmah.ErrorFilterModule, Elmah\" preCondition=\"managedHandler\" />
        <add name=\"ErrorMail\" type=\"Elmah.ErrorMailModule, Elmah\" preCondition=\"managedHandler\" />
        <add name=\"ErrorTweet\" type=\"Elmah.ErrorTweetModule, Elmah\" preCondition=\"managedHandler\" />
    </modules>
    <handlers>
        <add name=\"Elmah\" path=\"elmah.axd\" verb=\"POST,GET,HEAD\" type=\"Elmah.ErrorLogPageFactory, Elmah\" preCondition=\"integratedMode\" />
    </handlers>
</system.webServer>
没有错误发生,即使将tweet登录到数据库并通过电子邮件发送,它也不会出现。     
已邀请:
请参阅项目站点上的ErrorHowling Wiki,以获取有关ѭ1及其使用的一些背景知识和信息。     

要回复问题请先登录注册