摘要:
所有的config和 应用程序中的路径都是 用 正斜杠 / (不是文件路径的反斜杆 \: C:\Users\)//Request.CurrentExecutionFilePath; 当前请求的虚拟路径 是这种格式:\虚拟目录名\admin\index.aspx//Request.ApplicationPath //获取服务器上 ASP.NET 应用程序的虚拟应用程序根路径。\虚拟目录名(应用程序名)以上都是虚拟目录中的文件路径,即是IIS中的路径。要得到真真的物理路径要在得到以上路径的基础上再加:Server.MapPath(Request.ApplicationPath+"SPLC 阅读全文