read version info

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
hannes_a
Posts: 77
Joined: Sun 22 Jan 2006 20:44
Location: munic

read version info

Post by 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

Shalex
Site Admin
Posts: 8248
Joined: Thu 14 Aug 2008 12:44

Post by 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 ... 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.

Post Reply