How to Get the Working Directory of a WCF Service
I was working on some code today in a WCF service that required me to know the directory containing the service itself. This is one of those things that by the next time I need to do it, I'll be asking myself "How did I do that last time?"
Well, here it is:
Well, here it is:
System.Web.Hosting.HostingEnvironment.ApplicationPhysicalPath;
Comments
Post a Comment