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.


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



Build smarter apps with Machine Learning, Bots, Cognitive Services - Start free.

Start Learning Now