I have a specific page with resources to see you must log in to. After checking i then do
HttpContext.Current.Response.TransmitFile("/App_Data" + fn);
This works under windows. When moving to mod_mono and apache i get the below. I tried chmod -R 777 App_Data just in case. Still no luck. I made sure to do a hard refresh (shift + refresh)
Could not find a part of the path "/App_Data/temp/-8485705369125905434".
--
System.IO.DirectoryNotFoundException: Could not find a part of the path "/App_Data/temp/-8485705369125905434".
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00000]
at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000]
at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
at System.IO.FileInfo.Open (FileMode mode, FileAccess access, FileShare share) [0x00000]
at System.IO.FileInfo.OpenRead () [0x00000]
at (wrapper remoting-invoke-with-check) System.IO.FileInfo:OpenRead ()
at System.Web.HttpResponse.TransmitFile (System.String filename, Boolean final_flush) [0x00000]
at System.Web.HttpResponse.TransmitFile (System.String filename) [0x00000]