Ever wondered where ASP.NET stored its temporary files? ASP.NET provides the HttpRuntime.CodeGenDir property which gets the physical path to the directory where ASP.NET stores temporary files (generated sources, compiled assemblies, and so on) for the current application.
Here’s how to use this property:protected void Page_Load(object sender, EventArgs e)
{
Response.Write(HttpRuntime.CodegenDir);
}
Running this on my machine, I get the following output
C:\Users\Suprotim\AppData\Local\Temp\Temporary ASP.NET Files\SampleProjects\e2124d07\bbtb1290
Tweet
1 comment:
very nice blog and informative.
Post a Comment