System.Web.MVC location for different versions.

MVC 5
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Stack 5\Packages\ Microsoft.AspNet.Mvc.5.0.0\lib\net45\System.Web.Mvc.dll

MVC 4
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Assemblies\System.Web.Mvc.dll

MVC 3
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies\System.Web.Mvc.dll

MVC 2
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 2\Assemblies\System.Web.Mvc.dll

Posted in Uncategorized | Leave a comment

ZERO WIDTH NO-BREAK SPACE

HTML Entity (decimal) 

www.wordpress.com

will be displayed as www.wordpress.com
Otherwise it gets displayed as http://www.wordpress.com

Read more details at –

http://www.fileformat.info/info/unicode/char/feff/index.htm

Posted in Uncategorized | Leave a comment

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

Web Sequence Diagrams

Create sequence diagrams online 🙂

Posted in Uncategorized | 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

Visual Studio Team Foundation Server Branching and Merging Guide

Posted in Uncategorized | Leave a comment

Remote Desktop Connection Manager

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.

Posted in Uncategorized | 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

XML serialization deserialization

Serialize (convert an object instance to an XML document):

XmlSerializer ser = new XmlSerializer(obj.GetType());
System.Text.StringBuilder sb = new System.Text.StringBuilder();
System.IO.StringWriter writer = new System.IO.StringWriter(sb);
ser.Serialize(writer, obj);
XmlDocument doc = new XmlDocument();
doc.LoadXml(sb.ToString());

Deserialize (convert an XML document into an object instance):

XmlNodeReader reader = new XmlNodeReader(doc.DocumentElement);
XmlSerializer ser = new XmlSerializer(objType);
object obj = ser.Deserialize(reader);
MyClass myObj = (MyClass)obj;

Posted in Uncategorized | Leave a comment