DOS Command to check installed .Net Framework Versions

dir %WINDIR%\Microsoft.Net\Framework\v* /O:-N /B

Posted in Uncategorized | Leave a comment

Date range overlap validate method

public static bool IsOverlapped(DateTime beginDate1, DateTime endDate1, DateTime beginDate2, DateTime endDate2)
{
    if (beginDate1 <= endDate2 && beginDate2 <= endDate1)
    {
        return true;
    }
    else
    {
        return false;
    }
}
Posted in Uncategorized | Tagged , , | Leave a comment

Web Sequence Diagrams

Create sequence diagrams online:)

Link | Posted on by | Leave a comment

IIS Configuration for long running Debug

If you are keeping IIS application in debug for longer time, it might terminate it with following error:

The debugger stopped execution of code on the Web site. This caused Internet Information Services (IIS) to assume that the worker process had stopped responding. Therefore, IIS terminated the worker process.

 

Try following IIS Configuration change:

  1. Open IIS Manager (Start > Run > inetmgr)
  2. Select respective Application Pool > Right Click > Advanced Settings
  3. Change following values:
    1. Ping Enabled (set to False)
    2. Ping Maximum Response Time (seconds) (set with a higher number, 3600 for example)

 

 

Showing original values, change as suggested above:

 

Posted in Uncategorized | Leave a comment

Visual Studio Team Foundation Server Branching and Merging Guide

Link | Posted on by | Leave a comment

Remote Desktop Connection Manager

RDCMan manages multiple remote desktop connections. It is useful for managing server labs where you need regular access to each machine such as automated checkin systems and data centers. It is similar to the built-in MMC Remote Desktops snap-in, but more flexible.

Link | Posted on by | Leave a comment

Generate List of properties with data type

StringBuilder sb = new StringBuilder();

MyClass objClass = new MyClass();
foreach (var prop in objClass.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly).OrderBy(p => p.Name))
{
sb.Append(prop.Name).Append(“, “);
sb.Append(prop.PropertyType.FullName);
sb.Append(Environment.NewLine);
}
textBox1.Text = sb.ToString();

 

Posted in Uncategorized | Leave a comment