IIS, Windows Service Debugging

For Internet Information Services (IIS) applications, web data access components, COM+, SharePoint and related Microsoft technologies problems, you can use Debug Diagnostic Tool to debug hangs, slow performance, memory leaks or fragmentation, and crashes.

There are two modules of the software.

1- Collection Module

2- Analysis Module

log4net “it is being used by another process” problem


If you use log4net for logging, and try to download log file from ftp, sometimes “file is being used” problem occurs. There is a configuration for minimal locking the log file.

  • <log4net>
    • <appender…
      • <lockingModel type=”log4net.Appender.FileAppender+MinimalLock” />
    • </appender>
  • </log4net>

Get Table Columns And Sizes

You can get SQL Server table columns and sizes with this query. Just change “___TABLE___NAME___” value with your table name.


colname varchar(50) NULL,
collen int NULL

INSERT INTO #temp (colname, collen)
SELECT column_name, character_maximum_length
WHERE table_name = ‘___TABLE___NAME___’
and data_type in(‘varchar’,’char’,’nvarchar’,’nchar’)



Google Crawl Error 404

A word about 404 errors

One of the most common crawling errors are 404 errors, which occur when somebody tries to access a page that does not exist (usually because the page has been deleted or the user clicked on a broken or incorrect link). Most of the time, 404 errors can be ignored. However, if you’re seeing a lot of traffic leading to a URL that 404s, check your site for broken links. More information about dealing with 404 errors.


Windows 7 – Enable Telnet

It’s very rare that I use Telnet these days, so it took a long time for me to notice that by default it was not packaged with Windows 7. I did some research and found out that this was also true for Windows Vista. More than likely this was an attempt to make Windows more secure by default, as Telnet is very insecure and whenever you have the choice you should always use SSH.
However, with that being said, you can quickly re-enable Telnet by following these steps:
  • Start
  • Control Panel
  • Programs And Features
  • Turn Windows features on or off
  • Check Telnet Client
  • Hit OK
  • After that you can start Telnet via Command Prompt.