When my Windows Service(WCF service in selfhost) is starting up(ServiceBase.Main
) I got some code that needs to know the ApplicationPhysicalPath
.
The problem is that System.Web.Hosting.HostingEnvironment.ApplicationPhysicalPath
is always null
?
Why? And is there any workaround?