I am trying to construct a file path in order to read an XSLT file, like so:
string path = \"../_xslt/example.xslt\"; StreamReader reader = new StreamReader(
You can use the HttpServerUtility.MapPath method to map any relative paths for you, in your controller this is easily accessible via the ControllerContext:
ControllerContext
string path = ControllerContext.HttpContext.Server.MapPath("~/_xslt/example.xslt"); ...