Enabling Tracing Programmatically in ASP.NET

By | January 2, 2011

ASP.NET provides a internal details of page related information by enabling Tracing. To use tracing, we need to explicitly enable it from Page directives as shown in below Enable tracing from page directives is one of the easiest way to enable it. But, we can use Page.Trace object to enable or disabled the tracing programmatically. Trace object is… Read More »

Use Conditional Breakpoints with Method Calling in Visual Studio

By | December 30, 2010

Visual Studio Breakpoints allow you to put conditional breakpoint. If and only if that condition is satisfied, the debugger will pause the execution. Along with the normal condition with in conditional breakpoint in visual studio, we can call a methods from the condition field and based on the return value debugger will stop at the breakpoint. Let’s say… Read More »

Know when your application pools recycling in IIS 7.5 – Log an entry in Event Viewer while recycling

By | December 29, 2010

In IIS 7.5 you can enable the event logging when application pool recycles. When IIS will log, for that you can set certain number of  settings.  This logging is very important when you want to find out why and when your application pool recycling. From List of Application pools, Right Click on the required Application Pool > Advanced… Read More »

How to count number of active session for State Server Session Mode ?

By | December 28, 2010

While dealing with ASP.NET Session, generaly we use Session_Start() method in Global.aspx for count the number of active session, as whenever a new session start, it invoked the Session_Start method. Generally most of the developer use an Application variable with in Session_Start method to count the total number of active session as shown in below. But, sometime, when… Read More »