title: Using the Web Application version number from an assembly (ASP.NET/C#)
body: <p>How do I obtain the version number of the calling web application in a referenced assembly?</p>
  
  <p>I've tried using System.Reflection.Assembly.GetCallingAssembly().GetName() but it just gives me the dynamically compiled assembly (returning a version number of 0.0.0.0).</p>
  
  <p><strong>UPDATE: In my case I needed a solution that did not require a reference back to a class within the web application assembly.  Jason's answer below (marked as accepted) fulfils this requirement - a lot of others submitted here don't.</strong></p>