ASP.NET cached aspx page & IIS logs

Posted by Vishal Seth on Stack Overflow See other posts from Stack Overflow or by Vishal Seth
Published on 2010-05-14T04:08:42Z Indexed on 2010/05/14 4:14 UTC
Read the original article Hit count: 301

Filed under:
|
|
|

Hi guys,

Is there any way to find out if ASP.Net runtime has served a cached copy of ASPX page or actually went through the page life cycle?

Here is my problem:

I'm seeing many entries in my IIS log files that were served successfully (200 OK). I've a corresponding logging code (Log4Net API) in the Session_Start and Application_BeginRequest() events that is logging every request to my DB with more details. I'm not seeing any corresponding entries in my SQL DB for some cases that should have been created by Log4Net code.

Are there any logs available to find out if a cached copy was served by .NET worker process? Moreover, if my logging code would throw an exception, won't that show up as 500 in IIS logs?

The code is on Windows 2008 Server, IIS 7.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about caching