ASP.NET:How to write error messages into a text file using a simple httpModule

In one of my previous posts, I mentioned about how to troubleshoot some issues with the use of a module. In this post, I will show you how a similar module could be of use when you want to log all the errors in a text file for troubleshooting purposes. Please ensure that C:\Temp folder…


Logparser Scenario 9:Find out what is the peak time for your IIS Server

This blog entry is a continuation of the KB Article http://support.microsoft.com/?id=910447 Scenario 9:Find out what is the peak time for your IIS Server How can you find out what is the peak time (peak hour) for your Website using Logparser? Answer: Logparser "SELECT quantize(time,60), count(*) as Frequency from ex080716.log GROUP BY quantize(time,60) order by quantize(time,…

3

Run a batch file as a specific User (or Administrator) from ASP.NET…

…well first of all, I am NOT recommending it, but sometimes it could be necessary! Now, let’s proceed to the code… 1. Create a page called RunBatchFile.vb and paste the following… Imports System.Diagnostics Imports System.IO Partial Class RunBatchFile Inherits System.Web.UI.Page Dim _password As New System.Security.SecureString Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)…

3

How to use httpModules to troubleshoot your ASP.NET application

No matter how many things you keep in mind before developing an application, when once they are put in production… quite often you will see something not behaving the way you expected. Many-a-times, the applications would throw an error which you can troubleshoot depending on the error message you found. In this post, my intention…

2