How do I get the current directory in a web service

前端 未结 7 858
情歌与酒
情歌与酒 2020-12-09 08:04

I am using System.IO.Directory.GetCurrentDirectory() to get the current directory in my web service, but that does not give me the current directory. How do I get the curren

7条回答
  •  佛祖请我去吃肉
    2020-12-09 08:31

    HttpContext.Current.Server.MapPath("..") [observe two(..) dots instead of (.)] gives physical directory of Virtual Directory of the site!

提交回复
热议问题