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.
PS: If coding assembly resolve event and logging into a database can help track this? Can somebody point me to an example?