On mono (linux) EndpointHost.AppHost.VirtualPathProvider.RootDirectory.RealPath not providing correct path. This is a work around, we are manually setting EndpointHost.AppHost.Config.WebHostPhysicalPath in EndpointHostConfig and using this variable as a RealPath.