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…

0

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

Visual Studio 2008 – More control over Recent Projects list in Start Page

If you work with a lot of samples, the chances are quite likely that you will end up in a rather dirty list of Recent Projects List in Visual Studio. I’m personally quite nit-picky and I really hate it when I find something like this… Now… I don’t know which of these Samples should I click…

16

Why do I like overflow:scroll so much?

There are times when you want to incorporate a picture, a large piece of code in a limited web space… ex. a blog post which has a lot of <DIV> tags. Now, to crop or resize the picture may not be the option always. I still see a lot posts where the images are either…

1

AJAXControl Toolkit issue in VS 2008

When I tried opening the AjaxControlToolkit.sln by double clicking on it, it was throwing the following error at me… ————————— Microsoft Visual Studio ————————— The application for project ‘H:\Downloads\AjaxControlToolkit\SampleWebSite’ is not installed. Make sure the application for the project type () is installed. ————————— OK   Help   ————————— To get rid of it, open the SLN…

3

UPDATE> Windows Live Writer plug-ins

I have found that a couple of my plug-ins, namely Social Bookmarking and Smiley Plugin  don’t work as expected in Windows Live Writer’s latest version. If you are encountering any issues and running Vista machine, please try running WLW as an Administrator. Apparently a few things changed with WLW and I am still investigating if…

5

We now have a team blog…

…and I am pretty excited about it! In our team, we deal with a lot of issues with IIS and ASP.NET and have a plenty of folks in our team who blog individually, and do it pretty well. We will continue to have our own blogs, but going forward you will see a lot of…

1

Logparser Scenario 8:Checking the traffic/requests between a specific client and server

This blog entry is a continuation of the KB Article http://support.microsoft.com/?id=910447. Scenario 8: Checking the traffic/requests between a specific client and server Why would you do it in the first place? You may want to troubleshoot an authenticate issue for that specific client for the error that s/he reported to you. May be that’s why!…

1