How do I get the current directory in a web service

前端 未结 7 830
情歌与酒
情歌与酒 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:22

    Best way is using

    HostingEnvironment.ApplicationPhysicalPath under System.Web.Hosting

    for more information please refer this link

提交回复
热议问题