title: How to get "Browse" URL for web site in IIS using C#?
body: <p>Say, I have the "Site Name" web site in the IIS. I can access most of its functions via the <a href="http://msdn.microsoft.com/en-us/library/microsoft.web.administration.servermanager%28v=vs.90%29.aspx" rel="noreferrer">ServerManager</a> class from my C# code. What I can't seem to figure out is how to get the "Browse" URL for it, like I showed on the screenshot below?</p>
  
  <p><img src="https://i.stack.imgur.com/paZPl.png" alt="enter image description here"></p>
  
  <p>If I go to Manage Website -> Browse in the <em>IIS Manager</em>, it will launch the IE with a URL as such:</p>
  
  <pre><code>http://localhost:8080/app1/Default.aspx
  </code></pre>
  
  <p>So I need to get a URL like that.</p>
  
  <p>PS. Note that I don't need to launch the site itself.</p>