The temporary directory used by ASP.NET is usually located under
C: \ Windows \ Microsoft.NET \ Framework \ <version> \ Temporary ASP.NET Files \
Sometimes, however, it is overridden by the tempDirectory attribute in the compilation element in the web.config file.
How can I get the temporary directory currently used by ASP.NET regardless of whether it is the default directory or an overridden user directory?
PS There are several properties that will return a subdirectory under a temporary directory (for example, AppDomain.CurrentDomain.DynamicDirectoryothers), but I'm looking for a directory as it appears in the configuration file.
source
share