Find .NET framework version

Finding which version of dotnet framework is used in an Assembly..

 
using System.Reflection;

Assembly ambly = System.Reflection.Assembly.ReflectionOnlyLoadFrom("G:\\AjaxControlToolkit.dll");
Response.Write(ambly.ImageRuntimeVersion);
Next Recommended Reading Introduction to CLR in .Net framework.