My application needs files outside Deploy folder And I would like to know how to set The Path with Server.MapPath("").
This is not a valid solution for me : var FullTempPath ="C:\inetpub\TempFiles" ;
Example:
- C:\inetpub\ProjectFolder > Deploy
- C:\inetpub\TempFiles > Here I would like to go:
I was trying with that code but is not working:
var ParentServerPath = Server.MapPath("..");
var PartialTempPath = Path.Combine(@"/TempFiles/", key + ".js");
var FullTempPath = ParentServerPath + PartialTempPath;
The Objective:
of that is save all JS and CSS files Minimized and Compressed generated on a folder outside my project with write permission, also I would like to know if that's a good idea, and where you're saving all that files.