From f391029a2a727cffcffecd779aef965060c59e63 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Wed, 2 Jan 2013 07:36:33 -0100 Subject: [PATCH] Fixed U4-1378 "About" dialog is broken --- .../umbraco.presentation/umbraco/dialogs/about.aspx.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/about.aspx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/about.aspx.cs index 297ce8567b..e1661c7db4 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/about.aspx.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/about.aspx.cs @@ -28,9 +28,10 @@ namespace umbraco.dialogs thisYear.Text = DateTime.Now.Year.ToString(); - // umbraco.dll version - FileVersionInfo myFileVersionInfo = FileVersionInfo.GetVersionInfo(IOHelper.MapPath(SystemDirectories.Bin + "/umbraco.dll")); - version.Text += " (Assembly version: " + myFileVersionInfo.FileVersion + ")"; + // Get the version of the umbraco.dll by looking at a class in that dll + // Had to do it like this due to medium trust issues, see: http://haacked.com/archive/2010/11/04/assembly-location-and-medium-trust.aspx + var versionNumber = new AssemblyName(typeof(Umbraco.Web.ApplicationContextExtensions).Assembly.FullName).Version.ToString(); + version.Text += string.Format(" (Assembly version: {0})", versionNumber); } #region Web Form Designer generated code