Get the Location Path of ASP.NET 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
Ebook Download
View all
Learn
View all