Search This Blog

Friday, October 15, 2010

How to find ASP.NET temporary files location?

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.

protected void Page_Load(object sender, EventArgs e)
{
   Response.Write(HttpRuntime.CodegenDir);
}

No comments:

Post a Comment