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

by Rahul 7/18/2008 12:56:11 AM
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 has Write acc... [More]


Currently rated 5.0 by 2 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

ASP.NET | HttpModules | Tips and Tricks | Troubleshooting

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

by Rahul 7/15/2008 4:02:22 PM
This post is a continuation of this article. Scenario 8: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(t... [More]


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

Logparser | Tips and Tricks | Troubleshooting

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

by Rahul 7/15/2008 3:59:14 PM
This post is a continuation of this article. Scenario 7: 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! ... [More]


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

Logparser | Tips and Tricks | Troubleshooting

Logparser Scenario 6:Searching files for culprits when you don't have Visual Studio on the Server

by Rahul 7/15/2008 3:55:12 PM
This post is a continuation of this article. Scenario 6: Searching for any specific text in all the files of a folder. A small background of the problemRecently we saw a very interesting problem. Users of a web-site were seeing other user's data in ASP.NET. There is cool blog entry about it by Jerry... [More]


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

Logparser | Tips and Tricks | Troubleshooting

Log parser 2.2:How can you use Log Parser for analyzing IIS Log files.

by Rahul 7/15/2008 3:47:49 PM
I have written an article on Log parser a while ago at Log Parser 2.2 and ASP.NET. Please read it before you continue on this post... Here are some of the other scenarios in which you could use it... Scenario 5: Analyzing the IISlogs to see if there is any pattern for errors A small background of t... [More]


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

Logparser | Tips and Tricks | Troubleshooting

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

by Rahul 7/12/2008 9:02:21 PM
...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... [More]


Currently rated 4.5 by 2 people

  • Currently 4.5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

ASP.NET | Tips and Tricks | Troubleshooting

How to use httpModules to troubleshoot your ASP.NET application

by Rahul 7/12/2008 6:34:01 PM
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... [More]


Currently rated 5.0 by 2 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

.NET | ASP.NET | HttpModules | Troubleshooting

Firefox 3 - Is it too slow to open when you boot your PC?

by Rahul 7/12/2008 1:27:01 PM
Of late, I have seen Firefox 3 taking a long time to open when my PC boots up. The subsequent boot-ups are fine. I tried a few suggestions after googling the issue on net. But here is what worked best for me... (I unchecked all these checkboxes below, and things are much better now!!!) Hope that h... [More]


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Firefox | Tips and Tricks

Calendar

<<  January 2009  >>
MoTuWeThFrSaSu
2930311234
567891011
12131415161718
19202122232425
2627282930311
2345678

View posts in large calendar

Recent comments

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway. We try our best to write good code, but none of the code here is tested on Production boxes. Feel free to use the code, BUT test it before you do so (in simple words... use it at your own risk)

© Copyright 2009

Sign in