title: Get version number of my website
body: <p>The website is an old aspx website.  We are running under C# 4.5 using Visual Studio 2013 if that helps.</p>
  
  <p>My AssemblyInfo.cs file has the following in it.</p>
  
  <pre><code>[assembly: AssemblyVersion("1.0.*")]
  </code></pre>
  
  <p>I have taken out the AssemblyFileVersion attribute.</p>
  
  <p>on my default.aspx file I have the following;</p>
  
  <pre><code>Site version: &lt;%= System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() %&gt;
  </code></pre>
  
  <p>However the version that is displayed is always 0.0.0.0.</p>
  
  <p>I have followed the sample on SO and also from <a href="http://abundantcode.com/how-to-get-auto-incrementing-version-number-in-visual-studio-2013/" rel="nofollow">http://abundantcode.com/how-to-get-auto-incrementing-version-number-in-visual-studio-2013/</a> but I still get 0.0.0.0</p>
  
  <p>Any idea on what I am doing wrong?</p>