read version info

read version info

Postby hannes_a » Tue 13 Jul 2010 14:24

how can I read installed dotConnect versioninfo (assembly information) during runtime in an aspx site ?

thank you
hannes_a
 
Posts: 77
Joined: Sun 22 Jan 2006 20:44
Location: munic

Postby Shalex » Wed 14 Jul 2010 16:04

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/system.reflection.assemblyname.version%28v=VS.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.
Shalex
Devart Team
 
Posts: 7530
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for Oracle