title: Get the version of Service hosted in IIS
body: <p>We are hosting a WCF service in IIS. For tracking purposes we need to know the version of the service that's being hosted in IIS.</p>
  
  <p>This service is part of an suite of services so we implemented all common functionality (Like the mentioned tracking service in a common library)</p>
  
  <p>When trying to get the Assembly version using normal calls
  Assembly.GetExecutingAssembly()</p>
  
  <ul>
  <li>Assembly.GetExecutingAssembly(): get the version of the common Library</li>
  <li>Assembly.GetEntryAssembly(): null</li>
  <li>Assembly.GetCallingAssembly(): get the version of the common library</li>
  </ul>
  
  <p>I also tried getting the call stack and getting the last one (got the IIS version).</p>
  
  <p>Does anyone know how to programmatically get the version of the WCF service that is hosted in IIS?</p>