Blog

Get the Location Path of ASP.NET Temporary Files

By Gaurav Gupta Blogs | ASP.NET Programming Apr 09, 2013
Gets the physical path to the directory where ASP.NET stores temporary files.
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.

Response.Write(HttpRuntime.CodegenDir);

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


Output

Clipboard02.png
COMMENT USING

PREMIUM SPONSORS

Hire Mobile & Web Developer on demand. 100% satisfaction. Try for 1 week or Money Back. Local and remote developers available all over USA.

Latest Blogs