In my c# applications I usually get the version (to show the customer) using the following code:
System.Reflection.Assembly.GetExecutingAssembly().GetName().Vers
Try this:
private static string GetVersionNumber() { var asm = Assembly.GetExecutingAssembly(); var parts = asm.FullName.Split(','); return parts[1].Split('=')[1]; }