Get the Location Path of ASP.NET Temporary Files

By Gaurav Gupta Apr 09 2013
Gets the physical path to the directory where ASP.NET stores temporary files.
    • Like
    • Love It
    • Awesome
    • Interesting
    • It's Okay
    • Thumbs Down
  • 5.7k
  • 0
How you can know where the ASP.NET temporary files are stored in the system.

The temporary files are those which are generated at compiled or runtime includes generated sources, Compiled assemblies etc.

The CodegenDir property of HttpRuntime,  provied the physical path of directory where the ASP.NET temporary files are stored for the current application. This property returns the string value (path).

How you can use it.


The above code will give the location of the ASP.NET temporary files.