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
HttpContext.Current.Server.MapPath(".") will give you the current working directory.
HttpContext.Current.Server.MapPath(".")
But to Rohan West's comment about potentially being outside of an HttpContext it would probably be better to just call:
HostingEnvironment.MapPath(".")
See details here