A occhio e croce direi qui.

codice:
Left(Server.mappath(Request.ServerVariables("PATH_INFO")),pathEnd)