title: C# Web Service: Getting product name assembly and machine name where it is executed
body: <p>I have a Web Service in C# that is published to a server on IIS.</p>
  
  <p>In this web service I build a connection string using some parameters.</p>
  
  <p>There are two, "Applicacion Name" and "Workstation Id" that I would like to set them with assembly product name and machine name where web service is executed. So I do that as below:</p>
  
  <ul>
  <li>To set "Application Name" I use    System.Windows.Forms.Application.ProductName value</li>
  <li>To set "Workstation ID"    I use System.Environment.MachineName value</li>
  </ul>
  
  <p>In Win forms apps I use these values but are they correct when talking about web services? I mean, Are these values extracted in a different way in web services?</p>
  
  <p>Also to avoid using System.Windows.Forms namespace is there any other way to obtain web service application name?</p>
  
  <p>By Application name I mean the product name that appears from visual studio ide when you go to project properties => Application => Assembly information button => Product Name field.</p>