August 22, 2002

Add exception tracing with one line of code

At times you want to keep a log of all the exception occurred in your application, including those that are correctly caught by a Catch block. At first you might believe that you need to add a call to the LogException procedure from each and every Catch block, which is

Prevent unauthorized changes to ASP.NET configuration files

Some ASP.NET settings are so critical that the system administrator should prevent them from being changed by individual applications. This ability is especially crucial for servers that host multiple applications written by different developers. In this case, the administrator can prevent undesired changes by adding an allowOverride attribute to the

Change script timeout through ASP.NET configuration files

The httpRuntime tag in ASP.NET configuration files lets you determine several behaviors of ASP.NET at the machine or site, including the global value for script timeout. Here’s the complete syntax for this tag: executionTimeout is the maximum time an .aspx page can run before timing out. The default is 90

Use custom error pages in ASP.NET

The tag in ASP.NET configuration files affects how error pages are managed in an ASP.NET application and whether developers can redirect users to their custom error pages when an exception is thrown. The syntax for this tag is: ASP.NET produces an error page when an application throws an unhandled exception

Reduce Server Too Busy errors with the httpRuntime tag

The httpRuntime tag in ASP.NET configuration files lets you determine several features of ASP.NET at the machine or site level, including the how ASP.NET uses multi-threading. Here’s the complete syntax for this tag: minFreeThreads is the minimum number of threads that must be free for ASP.NET to accept a request.