Vb.net 如何获取网站根目录的物理位置?

Vb.net 如何获取网站根目录的物理位置?,vb.net,visual-studio,root,Vb.net,Visual Studio,Root,如何在VB.Net中获取网站的物理根目录的位置 我使用的是visual studio 2008和vb.net调用Server.MapPath(“~/”)我更喜欢: Request.PhysicalApplicationPath 但正如SLaks所说: Server.MapPath("~/") 会很好的

如何在VB.Net中获取网站的物理根目录的位置

我使用的是visual studio 2008和vb.net

调用
Server.MapPath(“~/”)
我更喜欢:

Request.PhysicalApplicationPath
但正如SLaks所说:

Server.MapPath("~/")
会很好的