Page 1 of 1

read version info

Posted: Tue 13 Jul 2010 14:24
by hannes_a
how can I read installed dotConnect versioninfo (assembly information) during runtime in an aspx site ?

thank you

Posted: Wed 14 Jul 2010 16:04
by Shalex
You can get the version of assembly in runtime in this way:

Code: Select all

using System;
using System.Reflection;
...
System.Version version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
For more information, please refer to http://msdn.microsoft.com/en-us/library ... 71%29.aspx. For example, you can iterate all the assemblies in your domain, find the necessary assembly by the name (sample from the MSDN link), and check its version as it is posted above.