ELMAH 页面缺少时间戳和用户名

发布于 2024-12-02 10:27:32 字数 1386 浏览 1 评论 0原文

我们最近开始在我们的项目中使用 ELMAH,我注意到摘要页面 /elmah.axd 上有一些奇怪的问题。

一切似乎都按正确的顺序进行——除了时间戳/用户名。他们似乎是空的。

用户名是 string.empty,日期/时间默认为 1/1/0001 12:00 AM。

单击错误的详细信息将显示正确的时间戳和用户 - 并且数据库表似乎具有正确的值。 3演示14 2011-08-29 17:09:40.410

是否有我错过的配置步骤?

<elmah>
<security allowRemoteAccess="1" />
<errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="elmahErrorConnectionString" />
</elmah>  

<!-- elmah -->    
<add name="elmahErrorConnectionString" connectionString="Data Source=(local);Initial Catalog=ElmahLLSFDev;Persist Security Info=True;User ID=SNIP;Password=SNIP"
 providerName="System.Data.SqlClient" />     
<!-- end elmah -->

<!-- elmah 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" />      
<!-- end elmah modules-->

<!-- elmah handlers -->      
<add name="Elmah" path="elmah.axd" verb="POST,GET,HEAD" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />      
<!-- end elmah -->

We recently began using ELMAH in our project and I'm noticing some weird issues on the summary page /elmah.axd.

Everything seems to be in proper order -- except for the timestamp / username. They seem to be empty.

Username is string.empty and the date/time is defaulting to 1/1/0001 12:00 AM.

Clicking on the details of an error will show you the proper timestamp and user -- and the database table appears to have proper values.
3demo14
2011-08-29 17:09:40.410

Is there a configuration step I missed somewhere?

<elmah>
<security allowRemoteAccess="1" />
<errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="elmahErrorConnectionString" />
</elmah>  

<!-- elmah -->    
<add name="elmahErrorConnectionString" connectionString="Data Source=(local);Initial Catalog=ElmahLLSFDev;Persist Security Info=True;User ID=SNIP;Password=SNIP"
 providerName="System.Data.SqlClient" />     
<!-- end elmah -->

<!-- elmah 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" />      
<!-- end elmah modules-->

<!-- elmah handlers -->      
<add name="Elmah" path="elmah.axd" verb="POST,GET,HEAD" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />      
<!-- end elmah -->

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

渡你暖光 2024-12-09 10:27:32

配置看起来不错。可能只是一个糟糕的版本。我想说去获取最新的代码并自己编译。

如果您仍然遇到问题,它是开源的,因此您绝对可以深入了解到底发生了什么。

The config looks good. Probably just a bad version. I'd say go get the latest code and compile it yourself.

If you are still experiencing the problem, it's open source so you can absolutely look under the hood to see what's going on.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文