I needed the same information for my IIS6 hosted WCF application and I found that this worked for me:
string apPath = System.Web.Hosting.HostingEnvironment.ApplicationPhysicalPath;
As always, YMMV.
More Related Contents:
- access HttpContext.Current from WCF Web Service
- How to add a custom HTTP header to every WCF call?
- How do I return clean JSON from a WCF Service?
- How do I pass values to the constructor on my wcf service?
- Could not find default endpoint element
- How to use a WSDL file to create a WCF service (not make a call)
- How to set Json.Net as the default serializer for WCF REST service
- Where to store data for current WCF call? Is ThreadStatic safe?
- Obtaining client IP address in WCF 3.0
- Why should a developer use web services instead of direct connections to a db? [closed]
- C# WCF REST – How do you use JSON.Net serializer instead of the default DataContractSerializer?
- How to use Fiddler to monitor WCF service
- How to handle Ajax JQUERY POST request with WCF self-host
- The maximum message size quota for incoming messages (65536) has been exceeded
- How can I use a WCF Service?
- Cannot serve WCF services in IIS on Windows 8
- An existing connection was forcibly closed by the remote host – WCF
- Is it recommended to use Self Tracking Entities with WCF services?
- Replace WCF default JSON serialization
- Best practices for DateTime serialization in .NET 3.5
- Shared data object between WCF service and Silverlight app
- Why is my WCF web service presenting this object in a different namespace with different field names?
- IsReference property in data contract
- maxReceivedMessageSize not fixing 413: Request Entity Too Large
- What are the impacts of setting establishSecurityContext=”False” if i use https?
- How do I tell WCF to skip verification of the certificate?
- How do i get the invoked operation name within a WCF Message Inspector
- WCF, RESTful Web Services and custom authentication
- Hosting WCF service inside a Windows Forms application
- WCF service The maximum array length quota (16384) has been exceeded