asp.net的临时文件夹

https://msdn.microsoft.com/en-us/library/ms366723.aspx

Compilation Output

When your code is compiled, the resulting assemblies are cached in a folder on the server. This folder requires appropriate permissions so that your code compiles and runs correctly. You can configure both the compilation folder location and the permissions under which your code compiles and operates.

Compilation Folder Location

By default, when you compile a Web application the compiled code is placed in the Temporary ASP.NET Files folder. This folder is a subdirectory of the location where you installed the .NET framework. Typically, the location is the following:

%SystemRoot%\Microsoft.NET\Framework\versionNumber\Temporary ASP.NET Files

Compilation Folder Required Permissions

The .NET installation process creates the Temporary ASP.NET Files folder and assigns access permissions to the ASP.NET local user account, which has the high-trust permissions needed to access your compiled code. If you modify your configuration or account settings, you must make sure that the account you use has high-trust permissions to the Temporary ASP.NET Files folder. For additional details, see How to: Run the Worker Process Under a User Account.

Compilation Folder Configurability

ASP.NET creates a discrete subfolder under the Temporary ASP.NET File folder for each application. You can configure the root location using the tempDirectory attribute of the compilation section of the configuration file. This optional attribute enables you to specify the directory to use for temporary file storage during compilation. The default is an empty string (""). In the case of an empty string, and if the current process has the required access permissions, the files are stored in the following directory:

%FrameworkInstallLocation%\Temporary ASP.NET Files

For more information, see compilation Element (ASP.NET Settings Schema) and the TempDirectory property of the CompilationSection.

https://docs.microsoft.com/en-us/aspnet/web-forms/overview/older-versions-getting-started/deploying-web-site-projects/precompiling-your-website-cs

This compiled assembly is saved in the folder %WINDIR%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files, although the location of this folder can be customized via the <pages> element in Web.config.

Because the assembly is saved to disk, it does not need to be recompiled on subsequent requests to the same page.

时间: 2024-10-25 00:40:57

asp.net的临时文件夹的相关文章

Temporary ASP.NET Files 文件夹中保存的是什么内容?[转]

转自:http://www.cnblogs.com/suiqirui19872005/archive/2007/05/14/746320.html ASP.NET 页面请求的处理过程需要使用一些临时文件.当您在 Web 服务器上安装 ASP.NET 2.0 时,所创建的文件夹层次结构如下: %WINDOWS%\Microsoft.NET\Framework\v2.0.50727 这里的版本号指的是 ASP.NET 2.0 的零售版.ASP.NET 的每个发布版本(包括每个过渡性的内部版本)都有一

perl之创建临时文件夹遇到同名文件该咋办

当你在目录下进行一系列操作时,若要创建许多文件或者修改文件,可能会遇到许多麻烦的事.所以呢,新建一个文件夹,然后在这个文件夹下新建文件或者修改文件.假设,你的代码要在一个目录下新建一个文件夹,名为TmpFolder,然后,在文件夹下进行一系列操作.但是,目录下可能之前就会出现TmpFolder,这样一搞,会出问题的.该怎么解决呢,有以下2个: (1)若是遇到有文件夹的名字是TmpFolder,就不要这个文件夹名字了,直接用TmpFolder2,不就是2了点嘛:但是,要是文件夹 TmpFolder

临时文件夹迁移 temp位置移动

方法/步骤 首先,在其他驱动器新建一个文件夹,给临时文件夹安个新家 桌面,右键"我的电脑",选择"属性" 点击"高级系统设置" 点击"高级"选项页 点击最下方的"环境变量" 点击"编辑" 删除原系统的路径 修改为要转移的目录 为了保证不出错,两个都要修改

java获取tomcat临时文件夹路径

/** 生成execl文件路径,tomcat临时文件夹temp  **/ String path = request.getSession().getServletContext().getRealPath("/")+"../../temp/driverExecl.xls";

为什么在Windows有两个临时文件夹的环境变量Temp和Tmp?

博客搬到了fresky.github.io - Dawei XU,请各位看官挪步.最新的一篇是:为什么在Windows有两个临时文件夹的环境变量Temp和Tmp?.

IIS/ASP.NET访问共享文件夹的可用方式

[截止2014-10-14] 网上搜索了很多篇文章,所提及的总共有两种方式: 1.Asp.Net模拟登陆: 例如: 实战ASP.NET访问共享文件夹(含详细操作步骤) 实现一个2008serve的IIS的虚拟目录(通过网络路径(UNC)的形式,共享在另外一个2008服务器上 2.调用Windows API 的 WNetAddConnection2 .WNetCancelConnection2函数: 例如: ASP.NET网络映射驱动器无权限访问的解决方案 ASP.NET访问网络驱动器(映射磁盘)

DOS批处理器移动指定数量文件到一个临时文件夹,上传到linux服务器,并删除临时文件夹下的文件

DOS批处理器移动指定数量文件到一个临时文件夹,上传到linux服务器,并删除临时文件夹下的文件,上传需要依赖pscp.exe. 脚本如下: @echo off&setlocal enabledelayedexpansion #将400个xml文件从M:\dockerEPG\目录下移动到M:\scpepg\tmp\目录下 for /f "delims=" %%i in ('dir/a-d/b/s "M:\dockerEPG\*.xml"') do (set

delphi 删除目录和创建目录,临时文件夹

获取用户当前的Windows临时文件夹function GetWinTempPath: string;varTempDir: array[0..255] of char;beginGetTempPath(255, @TempDir);Result := strPas(TempDir);end; 删除目录:(目录里有东西也一样删)(shellapi) function DelDirectory(const Source: string): boolean;varfo: TSHFILEOPSTRUC

asp.net 遍历文件夹下全部子文件夹并绑定到gridview上

遍历文件夹下所有子文件夹,并且遍历配置文件某一节点中所有key,value并且绑定到GridView上 C#代码   Helper app_Helper = new Helper(); DataSet ds = new DataSet(); DataTable dt = new DataTable(); protected void Page_Load(object sender, EventArgs e) { gvwBind(); } #region 绑定GridView /// <summa