开发者

"Errors During Preprocessing" is non-zero in ASP.NET perfmon counters

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?


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?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜