From MSDN:
Gets the ASP.NET application's virtual application root path on the server.
So this is the part of the URL's path that is the root of the IIS Web Application the code is running in. The root URL ("http://domain/") is always an IIS Application, so will give "/" as its ApplicationPath
.
You perhaps need to convert some child (virtual) folder into an IIS Application to see a longer path result.
Updated from comment:
I want to have the part "Http://servername:/..."
This information is all available within the properties of Request.Uri
. In particular "http" is Uri.Scheme
, severname is Uri.Host
and the port is Uri.Port
(but check Uri.IsDefaultPort
to check if you need to specify it).