I am trying to get the application url in C#. I have tried using:
HttpContext.Current.Request.ApplicationPath
But that only returns me "/". I am trying to get the full url of application's base url, which may or may not simply be "something.com". In some cases, depending on the environment, it is "something.com/foo/bar".
How can I achieve this?