How to get working path of a wcf application? -
I have to get a working folder of a WCF application. how can I get it?
If I try
httpctxx Present. Request .mappath (HTCTXXT.Renter RequestPhyspacePath) I have a tap reference exception (the current html is empty).
What I mean with my working folder was the folder where my WCF service is running, if I set the aspNetCompatibilityEnabled = "true" , then this error Receives:
The server did not provide a meaningful answer; This contract may be due to the contract, the session may be closed or internal server error before one time.
I need the same information for my IIS 6 hosted WCF application And I've found that it worked for me:
string appath = System.Web.Hosting.HostingEnvironment.ApplicationPhysicalPath; As usual, YMMV
Comments
Post a Comment