The temporary directory that's 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 on the compilation element in the web.config file.
How can I get the temporary directory currently used by ASP.NET regardless if it's the default directory or a user overridden directory?
P.S. There are a few properties that will return a subdirectory under the temporary directory (e.g. AppDomain.CurrentDomain.DynamicDirectory
and others) but I'm looking for the directory as it appears in the configuration file.