“预处理期间的错误” ASP.NET perfmon 计数器中非零

发布于 2024-08-15 19:30:44 字数 237 浏览 1 评论 0原文

在使用 perfmon 测试 ASP.NET 应用程序时,我们发现以下字段不为零:

ASP.NET 应用程序 v2.0.50727 >预处理期间的错误

文档称该字段是“解析期间发生的错误数,不包括编译和运行时错误”。

但是,我无法查明为什么会发生这种情况。 关于这些实际预处理错误记录在哪里的任何线索?或者如何启用日志记录以便我们可以修复这些错误?

While testing an ASP.NET application with perfmon, we find that the following field is non-zero:

ASP.NET Apps v2.0.50727 > Errors During Preprocessing

Documentation says that this field is "The number of errors that occurred during parsing, excluding compilation and run-time errors."

However, I have not been able to track down why this is happening.
Any clues on where these actual preprocessing errors are logged? Or how to enable logging so we can fix these errors?

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

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

发布评论

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

评论(2

人生戏 2024-08-22 19:30:44

我会尝试的一件事是使用 aspnet_compiler 从命令行预编译您的应用程序。例如,从 VS 命令窗口,尝试如下操作:

aspnet_compiler -v / -p c:\PathToYourAppRoot

在运行时,有一些后备行为可能会掩盖一些错误。但是当运行 aspnet_compiler 时,它应该捕获并显示遇到的任何错误。

如果这没有帮助,您可以尝试隔离问题的另一件事是找出计数器在哪个特定的 http 请求之后上升。例如,它是在您发送第一个请求后立即上升,还是仅在点击特定 URL 后上升?

One thing I would try is to precompile your application from the command line using aspnet_compiler. e.g. from a VS command window, try something like:

aspnet_compiler -v / -p c:\PathToYourAppRoot

At runtime, there is some fallback behavior which may mask some errors. But when running aspnet_compiler, it should be catching and displaying any error that it encounters.

If that doesn't help, another thing you can try to isolate the issue is figure out after what specific http request the counter goes up. e.g. does it go up as soon as you send the first request, or only after hitting specific URLs?

打小就很酷 2024-08-22 19:30:44

检查您的事件查看器。他们应该出现在那里。您可能还想查看下面的链接,了解有关如何将事件日志发送到其他位置(数据库、电子邮件等)的信息

http://www.asp.net/(S(sf10gzjodvrpce55el2p5cnk))/learn/hosting/tutorial-13-cs。 ASPX

Check your event viewer. They should be showing up there. You may also want to look at the link below for info on how to send the event logs to other places (db, email, etc...)

http://www.asp.net/(S(sf10gzjodvrpce55el2p5cnk))/learn/hosting/tutorial-13-cs.aspx

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